Spawning problem

Ask questions, discuss ideas, get answers
Post Reply
Master Jay
Posts: 139
Joined: Mon Mar 29, 2010 10:28 pm

Spawning problem

Post by Master Jay »

Okay hey :)

I having some problems with my objects like jeeps, boats, planes, etc... when spawning. In what I mean by is like this. I take a jeep from were its spawn and I have all my spawners to spawn after 1 second if the player take the first jeep. So.. Idk why it's not spawning after some takes the object. Can someone help? The jeep only spawns after the first one destroys. Can you guys tell me whats causing this type of problem?
Image
Im Watching You... When You Sleep!
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Spawning problem

Post by fo0k »

Add: MaxNrOfObjectSpawned 5 (or as many as you want to have at any one time maximum)

add to the bottom of your spawner in objectspawntemplates.con
Master Jay
Posts: 139
Joined: Mon Mar 29, 2010 10:28 pm

Re: Spawning problem

Post by Master Jay »

ty :)
Image
Im Watching You... When You Sleep!
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Spawning problem

Post by Dennis|8749236 »

don't use NrOfObjectsToSpawn
this code will make that spawner only give u certain amount of vehicles..
What is the meaning of Life?? (Don't think about it!)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Spawning problem

Post by Swaffy »

I think if you make the number -1, it might give you unlimited objects spawns. It's worth a try, but if it doesn't work just set the number to 50 or something.

-1 is Battlefield 1942's way of saying "infinite" or "unlimited."
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

a bit of clarification lol

Code: Select all


ObjectTemplate.MaxNrOfObjectSpawned 5  <-------- up to five objects from this spawner can be in the map at all times, one object destroyed a new on spawns

ObjectTemplate.nrOfObjectToSpawn 5  <---------- this spawner will put out up to five objects in total then it just stop, empty, finito, nada 
Master Jay
Posts: 139
Joined: Mon Mar 29, 2010 10:28 pm

Re: Spawning problem

Post by Master Jay »

Is it just possible to put this code in the spawner object.rfa?
Image
Im Watching You... When You Sleep!
User avatar
Iced Earth
Posts: 209
Joined: Sun Oct 18, 2009 2:07 pm
Contact:

Re: Spawning problem

Post by Iced Earth »

if its a spawner defined in objects.rfa then yes
Image
Post Reply