Amount of vehicles on the map...

General discussion of the Project Reality: BF2 modification.
Post Reply
C0NNA
Posts: 31
Joined: 2011-04-11 07:00

Amount of vehicles on the map...

Post 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!
Psyrus
Retired PR Developer
Posts: 3841
Joined: 2006-06-19 17:10

Re: Amount of vehicles on the map...

Post by Psyrus »

I believe you have to edit the map's files to accomplish what you want to do
C0NNA
Posts: 31
Joined: 2011-04-11 07:00

Re: Amount of vehicles on the map...

Post 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 :)
ballard_44
Retired PR Developer
Posts: 1204
Joined: 2007-05-30 22:47

Re: Amount of vehicles on the map...

Post 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
Image
C0NNA
Posts: 31
Joined: 2011-04-11 07:00

Re: Amount of vehicles on the map...

Post by C0NNA »

Thanks mate, worked a charm.
Post Reply

Return to “PR:BF2 General Discussion”