Usage:
ObjectTemplate.EndEffectTemplate
name
Argument values:
argument 1: | WaterExplosionTorpedo, e_ExplBazooka, e_ExplDirt, e_ExplGranade, e_FlakBig, e_Flare, e_SmokeGrenade, e_WaterExplosion; most commonly e_ExplGranade |
Description: Defines the effect Object displayed at the end of an object's life, whether due to collision or reaching the TimeToLive. This is in contrast to the collision effect HasCollisionEffect, which happens when the bullet actually hits a particular material. Essentially, this defines an explosion for the object (grenade, exppack, flak, depth charge, etc.) that happens regardless of what is hit or if anything is hit.
Related properties: HasCollisionEffect, InvisibleAtEndEffect, StopAtEndEffect, TimeOnEndEffect, TimeToLive, UseMMOnEndEffect
Used in object types (and how often in each type): Projectile (22%)
Used in a total of 33 .con files: Objects.con, Weapons.con
Parent directories of these .con files: objects/Vehicles, objects/HandWeapons
Example: (from objects/Vehicles/Common/Weapons.con)
ObjectTemplate.Create Projectile Torpedo
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.Geometry Torpedo_Hull_M1
ObjectTemplate.TimeToLive CRD_NONE/20/0/0
ObjectTemplate.EndEffectTemplate WaterExplosionTorpedo
ObjectTemplate.GravityModifier 1.0
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasCollisionEffect 1
ObjectTemplate.HasResponsePhysics 1
ObjectTemplate.SetHasPointPhysics 0
ObjectTemplate.DetonateOnWaterCollision 0
ObjectTemplate.Drag 0.08
ObjectTemplate.Mass 800
ObjectTemplate.Material 250
rem ObjectTemplate.material2 206
ObjectTemplate.Radius 30
rem -------------------------------------------------
ObjectTemplate.AddTemplate e_WaterTorpedo
ObjectTemplate.SetPosition 0/0/0
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate Torpedo_Floater
ObjectTemplate.SetPosition 0/3/-2
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate Torpedo_Floater
ObjectTemplate.SetPosition 0/3/2
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate Torpedo_Engine
ObjectTemplate.SetPosition 0/0/-3
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate Torpedo_Wing
ObjectTemplate.SetPosition 0/0/-3
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate Torpedo_Wing
ObjectTemplate.SetPosition 0/0/-3
ObjectTemplate.SetRotation 0/0/-90
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.