public VehicleDoorStateChangedArgs(Vehicle vehicle, VehicleDoor door, VehicleDoorState state, bool spawnFlyingComponent) { this.Vehicle = vehicle; this.Door = door; this.State = state; this.SpawnFlyingComponent = spawnFlyingComponent; }
public static Task SetDoorStateAsync(this IVehicle vehicle, VehicleDoor door, VehicleDoorState state) => AltVAsync.Schedule(() => vehicle.SetDoorStateExt(door, state));
/// <summary> /// Sets a vehicles door to a state /// </summary> /// <param name="vehicle">The vehicle</param> /// <param name="door">The door</param> /// <param name="state">The state</param> public static void SetDoorState(this IVehicle vehicle, VehicleDoor door, VehicleDoorState state) => vehicle.SetDoorState((byte)door, (byte)state);