예제 #1
0
        public void TurretShapeDataSetMountTurret(coTurretShapeData thisobj, coTurretShape turret, coShapeBase player)
            {
            if (!turret.isObject() || turret.getDamageState() == "Destroyed")
                return;
            int node = thisobj.call("findEmptySeat", turret, player).AsInt();
            if (node < 0)
                return;
            turret.mountObject(player, node, new TransformF("0 0 0"));

            player["mVehicle"] = turret;
            }
예제 #2
0
 public void TurretShapeDataMountPlayer(coTurretShapeData thisobj, coTurretShape turret, coShapeBase player)
     {
     if (turret.isObject() && turret.getDamageState() != "Destroyed")
         turret.call("setMountTurret", player);
     }