Usage:
ObjectTemplate.DestroyVehicleWhenNoAmmo
boolean
Argument values:
argument 1: | 1; most commonly 1 |
Description: Used with the wasserfall. When a weapon runs out of ammo on the specified weapon this will destroy the parent object which links to this FireArms object. There is a one second delay when this happens.
Used in object types (and how often in each type): FireArms (1%)
Used in one .con file: objects/Vehicles/Air/WasserfallRocket/Weapons.con
Example: (from objects/Vehicles/Air/WasserfallRocket/Weapons.con)
rem *** WasserFallBarrel ***
ObjectTemplate.Create FireArms WasserFallGuns
ObjectTemplate.SetNetworkableInfo PlaneFireArmInfo
ObjectTemplate.LoadSoundScript Sounds/spitfirefire.ssc
rem -------------------------------------
ObjectTemplate.ProjectileTemplate WasserFallProjectile
ObjectTemplate.ProjectilePosition 5/0/0
ObjectTemplate.MagSize 1
ObjectTemplate.NumOfMag 1
ObjectTemplate.Velocity 400
ObjectTemplate.RoundOfFire 40
ObjectTemplate.SetInputFire c_PIAltFire
ObjectTemplate.AltFireOnce 1
ObjectTemplate.DelayToUse 1
ObjectTemplate.DestroyVehicleWhenNoAmmo 1
ObjectTemplate.AmmoType 10
ObjectTemplate.AiTemplate WasserFallAttack
rem -------------------------------------
ObjectTemplate.SetFireDev 10.0 0 0
ObjectTemplate.SetMinDev 15.0
rem -------------------------------------
ObjectTemplate.AddFireArmsPosition 0/0.1/-0.1 0/0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/-0.1 0/-0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/0.1 0/-0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/0.1 0/0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/-0.1 0/0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/-0.1 0/-0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/0.1 0/-0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/0.1 0/0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/-0.1 0/0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/-0.1 0/-0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/0.1 0/-0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/0.1 0/0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/-0.1 0/0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/-0.1 0/-0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/0.1 0/-0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/0.1 0/0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/-0.1 0/0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/-0.1 0/-0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/0.1 0/-0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/0.1 0/0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/-0.1 0/0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/-0.1 0/-0.5/-0.5
ObjectTemplate.AddFireArmsPosition 0/-0.1/0.1 0/-0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0.1/0.1 0/0.5/0.5
ObjectTemplate.AddFireArmsPosition 0/0/0 0/0/0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.