Page 1 of 1

Amount of vehicles on the map...

Posted: 2011-05-22 09:19
by C0NNA
Hey, I was wondering if anyone knew what setting I would have to change on a LAN server to allow this (i'll give an example) Ok, so 1 person jumps in a chopper and then as soon as he takes off another one spawns in its place.

I figured out how to change the re spawn time but that's all.

Any help appreciated!

Re: Amount of vehicles on the map...

Posted: 2011-05-22 09:25
by Psyrus
I believe you have to edit the map's files to accomplish what you want to do

Re: Amount of vehicles on the map...

Posted: 2011-05-22 09:51
by C0NNA
Yes, I tried that, in the maps config file I was able to change the vehicle re-spawn time but I couldn't find anything related to what I want to do :)

Re: Amount of vehicles on the map...

Posted: 2011-05-22 10:00
by ballard_44
You need to add some code to make this happen.
Specifically the part in red.
No idea if there is a limit, but at least 2 is possible.


EXAMPLE...
rem [ObjectSpawnerTemplate: cpname_kd_64_usmain_a10]
ObjectTemplate.create ObjectSpawner cpname_kd_64_usmain_a10
ObjectTemplate.activeSafe ObjectSpawner cpname_kd_64_usmain_a10
ObjectTemplate.modifiedByUser "WSU"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.setObjectTemplate 2 your vehicle
ObjectTemplate.minSpawnDelay 240
ObjectTemplate.maxSpawnDelay 240
ObjectTemplate.TimeToLive 600
ObjectTemplate.Distance 100
ObjectTemplate.maxNrOfObjectSpawned 2
ObjectTemplate.teamOnVehicle 1

Re: Amount of vehicles on the map...

Posted: 2011-05-22 10:16
by C0NNA
Thanks mate, worked a charm.