[Command("doorswide")] //Türen nicht verriegelbar public static void CMD_DoorWide(OwnPlayer player) { if (!player.IsInVehicle || player.Seat != 1) { return; } OwnVehicle veh = (OwnVehicle)player.Vehicle; veh.SetDoorState(0, 1); // 0 = Fahrertür veh.SetDoorState(1, 1); // 1= Beifahrertür veh.SetDoorState(2, 1); // Türen hinten vsl. links veh.SetDoorState(3, 1); // Türen hinten vsl. rechts veh.SetDoorState(4, 1); // evtl. Motorhaube veh.SetDoorState(5, 1); // evtl. Kofferraum }
[Command("doorstight")] //Türen verriegelbar public static void CMD_Doortight(OwnPlayer player) { if (!player.IsInVehicle || player.Seat != 1) { return; } OwnVehicle veh = (OwnVehicle)player.Vehicle; veh.SetDoorState(0, 0); // 0 = Fahrertür //!Convert.ToByte(g)! veh.SetDoorState(1, 0); // 1= Beifahrertür veh.SetDoorState(2, 0); // Türen hinten vsl. links veh.SetDoorState(3, 0); // Türen hinten vsl. rechts veh.SetDoorState(4, 0); // evtl. Motorhaube veh.SetDoorState(5, 0); // evtl. Kofferraum }