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?
Mapside: Dead soldier "timeToLiveAfterDeath"
Mapside: Dead soldier "timeToLiveAfterDeath"
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Mapside: Dead soldier "timeToLiveAfterDeath"
yep
example, use what ever typ of soldier there is in your map
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
Re: Mapside: Dead soldier "timeToLiveAfterDeath"
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.
[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™