Page 1 of 1

Wreck stay time - Coral 2nd carrier

Posted: Sun Mar 10, 2013 5:09 am
by Scoop M
All ssm

1 # - The default wreck staying time for all land and air vehicles is 10 seconds. Possible to change that mapside ?

2 # - I'm using this code : http://battlefieldmodding.com/ssm/phpBB ... 34b302018e

to insert second carriers on Coral.

I'd like to change the airplane positions on those second carriers. I can insert new planespawners into ObjectSpawnTemplates.con (examples):

Code: Select all

ObjectTemplate.addTemplate Hornet_corsairSpawner
ObjectTemplate.setPosition 8/19.63/-63
ObjectTemplate.setRotation -180/-12.5/0

ObjectTemplate.addTemplate Hornet_sbdSpawner
ObjectTemplate.setPosition -8/20.1/-65
ObjectTemplate.setRotation -180/-12.5/0
but that just inserts new ones and the old ones still remain.

How do I either :

- Control the positions of the old ones ?
Or
- Remove the old ones completely ?

Re: Wreck stay time - Coral 2nd carrier

Posted: Sun Mar 10, 2013 11:27 pm
by Vilespring
Change "TimeToLive" in the Objects.con file. This tells how long wreck stays. The number is how many seconds.

ObjectTemplate.active Hornet_corsairSpawner
ObjectTemplate.TimeToLive 10


ObjectTemplate.active Hornet_sbdSpawner
ObjectTemplate.TimeToLive 10

Re: Wreck stay time - Coral 2nd carrier

Posted: Mon Mar 11, 2013 12:06 am
by Scoop M
ehm ... you're wrong ... :|

timetolive determines the time from last occupied till a vehicle starts selfdestructing.

Re: Wreck stay time - Coral 2nd carrier

Posted: Mon Mar 11, 2013 1:07 am
by Vilespring
Oops, I meant something else, he he :oops:


ObjectTemplate.active corsair
ObjectTemplate.TimeToLive 10


ObjectTemplate.active sbd
ObjectTemplate.TimeToLive 10

change the object. I did a huge derp. sorry.

Re: Wreck stay time - Coral 2nd carrier

Posted: Mon Mar 11, 2013 6:46 am
by Old Man River
you remove template to get rid of old ones, then add yours with active command on the default second carrier. For the coral carrier that are in map just make a patch to overide them as coral carriers are in object templates of map. Just remember not to set up a conflict with spawner commands as both carriers use same spawners for carrier

Re: Wreck stay time - Coral 2nd carrier

Posted: Mon Mar 18, 2013 7:49 am
by freddy

Code: Select all

ObjectTemplate.timeToLiveAfterDeath 10