public override void onDestroyed(ShapeBase obj, string lastState) { AITurretShape aits = obj._ID; aits.playAudio(0, "TurretDestroyed"); aits.setAllGunsFiring(false); aits.resetTarget(); aits.setTurretState("Destroyed", false); for (int i = 0; i < this["numWeaponMountPoints"].AsInt(); i++) { aits.setImageGenericTrigger(i, 0, true); } base.onDestroyed(obj, lastState); }
public virtual void onFiring(AITurretShape turret) { turret.setAllGunsFiring(true); }
public virtual void onNoTarget(AITurretShape turret) { turret.setAllGunsFiring(false); turret.recenterTurret(); turret.playAudio(0, "TargetLostSound"); }
public virtual void onFiring(AITurretShape turret) { turret.setAllGunsFiring(true); }
public virtual void onNoTarget(AITurretShape turret) { turret.setAllGunsFiring(false); turret.recenterTurret(); turret.playAudio(0, "TargetLostSound"); }