Table of Contents

Class VehicleSwapSeatRequested

Namespace
Uncreated.Warfare.Events.Models.Vehicles
Assembly
Uncreated.Warfare.dll
[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

bool

NewPassengerIndex

Passenger index in the vehicle's seat info for the player's new seat.

public required int NewPassengerIndex { get; set; }

Property Value

int

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

int

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; }

Property Value

WarfareVehicle