public virtual void onDeploy(AITurretShape turret) { for (int i = 0; i < this["numWeaponMountPoints"].AsInt(); i++) { turret.setImageLoaded(i, true); } turret.playAudio(0, "TurretActivatedSound"); }
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 onThrown(AITurretShape turret) { turret.playAudio(0, "TurretThrown"); }
public virtual void onNoTarget(AITurretShape turret) { turret.setAllGunsFiring(false); turret.recenterTurret(); turret.playAudio(0, "TargetLostSound"); }
public virtual void onTarget(AITurretShape turret) { turret.startTrackingTarget(); turret.playAudio(0, "TargetAquiredSound"); }
public virtual void onScanning(AITurretShape turret) { turret.startScanForTargets(); turret.playAudio(0, "TurretScanningSound"); }
public virtual void onDeploy(AITurretShape turret) { for (int i = 0; i < this["numWeaponMountPoints"].AsInt(); i++) turret.setImageLoaded(i, true); turret.playAudio(0, "TurretActivatedSound"); }