DetonateOnWaterCollision Property

Usage:
   ObjectTemplate.DetonateOnWaterCollision boolean

Argument values:

argument 1:    0; most commonly 0

Description: When set to 0, this allows a projectile to go into water without being destroyed (by default this value is 1). Used for depth charges and torpedoes.

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

Used in a total of 3 .con files: Weapons.con

Parent directory of these .con files: objects/Vehicles

Example: (from objects/Vehicles/Sea/Common/Weapons.con)
   ObjectTemplate.Create Projectile DepthCharge
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.Geometry depth_charge_m1
   ObjectTemplate.TimeToLive CRD_UNIFORM/2/4/0
   ObjectTemplate.EndEffectTemplate e_WaterExplosion
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.Haspointphysics 0
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.GravityModifier 1.0
   ObjectTemplate.HasOnTimeEffect 1
   ObjectTemplate.HasCollisionEffect 1
   ObjectTemplate.InvisibleAtEndEffect 1
   ObjectTemplate.DetonateOnWaterCollision 0
   ObjectTemplate.StopAtEndEffect 1
   ObjectTemplate.DieAfterColl 1
   ObjectTemplate.Invisible 0
   ObjectTemplate.Material 228
   ObjectTemplate.Material2 248
   ObjectTemplate.DamageType 1
   ObjectTemplate.Radius 100.0
   ObjectTemplate.Drag 5
   ObjectTemplate.Mass 800
   ObjectTemplate.ForceOnExplosion 50
   ObjectTemplate.ExplodeNearEnemyDistance 50.0


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