public void VehicleDataSetMountVehicle(coVehicleData thisobj, coVehicle vehicle, coPlayer player) { if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed") return; int node = VehicleDataFindEmptySeat(thisobj, vehicle, player); if (node == -1) return; vehicle.mountObject(player, node, new TransformF(true)); player["mVehicle"] = vehicle; }
public void VehicleDataMountPlayer(coVehicleData thisobj, coVehicle vehicle, coPlayer player) { if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed") return; player.startFade(1000, 0, true); thisobj.schedule("1000", "setMountVehicle", vehicle, player); player.schedule("1500", "startFade", "1000", "0", "false"); }