TimeToLiveAfterDeath Property

Usage:
   ObjectTemplate.TimeToLiveAfterDeath number

Argument values:

argument 1:    range is 0 to 9999; most commonly 0

Description: How long an object lives after it is destroyed. Normally an object's wreck exists for 10 seconds, then fades away in 2 more seconds. So, the default TimeToLiveAfterDeath is 12 seconds, and the default TimeToStartFadeAfterDeath is 10 seconds.

Setting this property to 0 makes the destroyed object immediately disappear. The Defgun uses it to stay around so its wreck stays visible.

Related properties: FadeAtTimeToLiveAfterDeath, TimeToStartFadeAfterDeath

Used in object types (and how often in each type): Bundle (2%), PlayerControlObject (17%), simpleobject (1%)

Used in a total of 62 .con files: Commonsoldierdata.inc, Objects.con

Parent directories of these .con files: objects/Vehicles, objects/Soldiers, objects/Objectives, objects/MOVE_FILES, Bf1942/Levels

Example: (from objects/Objectives/Mimoyecques_Cannon/Objects.con)
   rem *** Mimoyecques_Cannon ***
   ObjectTemplate.Create PlayerControlObject Mimoyecques_Cannon
   ObjectTemplate.SetNetworkableInfo Mimoyecques_CannonBodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.Hitpoints 550
   ObjectTemplate.Maxhitpoints 550
   ObjectTemplate.Material 76
   ObjectTemplate.CriticalDamage 51
   ObjectTemplate.HpLostWhileCriticalDamage 3.5
   ObjectTemplate.AddArmorEffect 400 e_PanzDamage 0/1.5/0.3
   ObjectTemplate.AddArmorEffect 0 e_scrapmetal 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
   ObjectTemplate.TimeToLiveAfterDeath 9999
   ObjectTemplate.FadeAtTimeToLiveAfterDeath 0
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodMimoyecques_Cannon
   ObjectTemplate.GUIIndex 67
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_blank_16x16.dds"


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.