Exemple #1
0
        public virtual void mountPlayer(TurretShape turret, ShapeBase player)
        {
            if (turret.isObject() && turret.getDamageState() != "Destroyed")
            {
                //todo change to csharp

                turret.call("setMountTurret", player);
            }
        }
Exemple #2
0
        public virtual void setMountTurret(TurretShape turret, ShapeBase player)
        {
            if (!turret.isObject() || turret.getDamageState() == "Destroyed")
            {
                return;
            }

            //todo convert to csharp
            int node = call("findEmptySeat", turret, player).AsInt();

            if (node < 0)
            {
                return;
            }
            turret.mountObject(player, node, new TransformF("0 0 0"));

            player["mVehicle"] = turret;
        }
        public virtual void setMountTurret(TurretShape turret, ShapeBase player)
        {
            if (!turret.isObject() || turret.getDamageState() == "Destroyed")
                return;

            //todo convert to csharp
            int node = call("findEmptySeat", turret, player).AsInt();
            if (node < 0)
                return;
            turret.mountObject(player, node, new TransformF("0 0 0"));

            player["mVehicle"] = turret;
        }
        public virtual void mountPlayer(TurretShape turret, ShapeBase player)
        {
            if (turret.isObject() && turret.getDamageState() != "Destroyed")
                //todo change to csharp

                turret.call("setMountTurret", player);
        }