Mapside: Dead soldier "timeToLiveAfterDeath"

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Mapside: Dead soldier "timeToLiveAfterDeath"

Post by Swaffy »

For a small map, I'd like it to have the dead soldier bodies to go away instantly (ObjectTemplate.timeToLiveAfterDeath 0) but I don't want to change this setting globally for my mod.

The original line of code is found under "Objects.rfa\Objects\Soldiers\Common\CommonSoldierData.inc".

Is there a way I can do this mapside?
Does it use that "setActive" code?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Mapside: Dead soldier "timeToLiveAfterDeath"

Post by freddy »

yep

example, use what ever typ of soldier there is in your map

Code: Select all

ObjectTemplate.Active JapaneseSoldier
ObjectTemplate.timeToLiveAfterDeath 0

ObjectTemplate.Active USMarineSoldier
ObjectTemplate.timeToLiveAfterDeath 0
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Mapside: Dead soldier "timeToLiveAfterDeath"

Post by Swaffy »

I guess I just put that code in ObjectSpawnTemplates? I heard something like that before.

[Edit] Yes, it worked. You guys are crazy good at making maps, so I figured this question would be easy to answer.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply