Beispiel #1
0
        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);
        }