Example #1
0
        public virtual void onMountObject(TurretShape turret, ShapeBase player, int node)
        {
            if (turret["entranceThread"].AsInt() < 0)
            {
                return;
            }

            int et = turret["entranceThread"].AsInt();

            turret.setThreadDir(et, false);
            turret.setThreadPosition(et, 0);
            turret.playThread(et, string.Empty);
        }
Example #2
0
        public virtual void onUnmountObject(TurretShape turret, ShapeBase player)
        {
            if (turret["entranceThread"].AsInt() < 0)
            {
                return;
            }

            int et = turret["entranceThread"].AsInt();

            // Play the entrance thread backwards for an exit

            turret.setThreadDir(et, false);
            turret.setThreadPosition(et, (float)1.0);
            turret.playThread(et, string.Empty);
        }
        public virtual void onUnmountObject(TurretShape turret, ShapeBase player)
        {
            if (turret["entranceThread"].AsInt() < 0)
                return;

            int et = turret["entranceThread"].AsInt();

            // Play the entrance thread backwards for an exit

            turret.setThreadDir(et, false);
            turret.setThreadPosition(et, (float) 1.0);
            turret.playThread(et, string.Empty);
        }
        public virtual void onMountObject(TurretShape turret, ShapeBase player, int node)
        {
            if (turret["entranceThread"].AsInt() < 0)
                return;

            int et = turret["entranceThread"].AsInt();

            turret.setThreadDir(et, false);
            turret.setThreadPosition(et, 0);
            turret.playThread(et, string.Empty);
        }