Class UnturnedPlayerSwappingSeatEvent
The event that is triggered when a player is swapping their seat.
Inheritance
System.Object
UnturnedPlayerSwappingSeatEvent
Implements
ICancellableEvent
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedPlayerSwappingSeatEvent : UnturnedPlayerEvent, IPlayerEvent, ICancellableEvent, IVehicleEvent, IEvent
Constructors
|
Improve this Doc
View Source
UnturnedPlayerSwappingSeatEvent(UnturnedPlayer, UnturnedVehicle, Byte, Byte)
Declaration
public UnturnedPlayerSwappingSeatEvent(UnturnedPlayer player, UnturnedVehicle vehicle, byte fromSeatIndex, byte toSeatIndex)
Parameters
Properties
|
Improve this Doc
View Source
FromSeatIndex
Gets the seat the player is swapping from.
Declaration
public byte FromSeatIndex { get; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToSeatIndex
Gets the seat the player is swapping to.
Declaration
public byte ToSeatIndex { get; set; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
Vehicle
Declaration
public UnturnedVehicle Vehicle { get; }
Property Value
Explicit Interface Implementations
|
Improve this Doc
View Source
IVehicleEvent.Vehicle
Declaration
IVehicle IVehicleEvent.Vehicle { get; }
Returns
Implements
ICancellableEvent
Extension Methods