Class VehicleSwapSeatRequested
[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_vehicle" })]
public class VehicleSwapSeatRequested : CancellablePlayerEvent, IPlayerEvent, ICancellable
- Inheritance
-
VehicleSwapSeatRequested
- Implements
- Inherited Members
Properties
IgnoreInteractCooldown
If the VehicleInteract cooldown should be ignored.
public bool IgnoreInteractCooldown { get; init; }
Property Value
NewPassengerIndex
Passenger index in the vehicle's seat info for the player's new seat.
public required int NewPassengerIndex { get; set; }
Property Value
Exceptions
- ArgumentOutOfRangeException
Seat out of range or taken.
OldPassengerIndex
Passenger index in the vehicle's seat info for the player's old seat.
public required int OldPassengerIndex { get; init; }
Property Value
PassengerData
The seat object for the player's old seat.
public Passenger PassengerData { get; }
Property Value
- Passenger
Vehicle
The player's current vehicle.
public required WarfareVehicle Vehicle { get; init; }