ExplodeNearEnemyDistance Property

Usage:
   ObjectTemplate.ExplodeNearEnemyDistance number

Argument values:

argument 1:    range is 3 to 50.0; most commonly 3

Description: Landmines and flak gun shells explode when they get this close to an enemy vehicle. See DamageType and the Damage Tutorial for more information.

Related properties: DamageType, Radius

Used in object types (and how often in each type): Projectile (10%)

Used in a total of 16 .con files: Objects.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/HandWeapons

Example: (from objects/Vehicles/Sea/PrinceOW/Weapons.con)
   rem *** AA_POW_Projectile ***
   ObjectTemplate.Create Projectile AA_POW_Projectile
   ObjectTemplate.CreateNotInGrid 1
   ObjectTemplate.LoadSoundScript ../../Common/Sounds/BigProjectile.ssc
   ObjectTemplate.Geometry tracklight_M1
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.TimeToLive CRD_UNIFORM/0.8/1.4/0
   ObjectTemplate.EndEffectTemplate e_FlakBig
   ObjectTemplate.GravityModifier 0
   ObjectTemplate.DamageType 1
   ObjectTemplate.Material 228
   ObjectTemplate.Material2 199
   ObjectTemplate.Radius 15
   ObjectTemplate.HasCollisionEffect 1
   ObjectTemplate.ExplodeNearEnemyDistance 10


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