OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class UnturnedPlayerSwappedSeatEvent

The event that is triggered when a player has swapped their seat.

Inheritance
System.Object
UnturnedPlayerEvent
UnturnedPlayerSwappedSeatEvent
Implements
IPlayerEvent
IVehicleEvent
IEvent
Inherited Members
UnturnedPlayerEvent.Player
UnturnedPlayerEvent.IPlayerEvent.Player
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedPlayerSwappedSeatEvent : UnturnedPlayerEvent, IPlayerEvent, IVehicleEvent, IEvent

Constructors

| Improve this Doc View Source

UnturnedPlayerSwappedSeatEvent(UnturnedPlayer, UnturnedVehicle, Byte, Byte)

Declaration
public UnturnedPlayerSwappedSeatEvent(UnturnedPlayer player, UnturnedVehicle vehicle, byte fromSeatIndex, byte toSeatIndex)
Parameters
Type Name Description
UnturnedPlayer player
UnturnedVehicle vehicle
System.Byte fromSeatIndex
System.Byte toSeatIndex

Properties

| Improve this Doc View Source

FromSeatIndex

Gets the seat the player has swapped from.

Declaration
public byte FromSeatIndex { get; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

ToSeatIndex

Gets the seat the player has swapped 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
Type Description
UnturnedVehicle

Explicit Interface Implementations

| Improve this Doc View Source

IVehicleEvent.Vehicle

Declaration
IVehicle IVehicleEvent.Vehicle { get; }
Returns
Type Description
IVehicle

Implements

IPlayerEvent
IVehicleEvent
IEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)