public virtual void mountPlayer(Vehicle vehicle, Player player) { if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed") { return; } player.startFade(1000, 0, true); this.schedule("1000", "setMountVehicle", vehicle, player); player.schedule("1500", "startFade", "1000", "0", "false"); }
public virtual void setMountVehicle(Vehicle vehicle, Player player) { if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed") { return; } int node = findEmptySeat(vehicle, player); if (node == -1) { return; } vehicle.mountObject(player, node, new TransformF()); player["mVehicle"] = vehicle; }
public virtual void mountPlayer(Vehicle vehicle, Player player) { if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed") return; player.startFade(1000, 0, true); this.schedule("1000", "setMountVehicle", vehicle, player); player.schedule("1500", "startFade", "1000", "0", "false"); }
public virtual void setMountVehicle(Vehicle vehicle, Player player) { if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed") return; int node = findEmptySeat(vehicle, player); if (node == -1) return; vehicle.mountObject(player, node, new TransformF()); player["mVehicle"] = vehicle; }