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

Class UnturnedPlayerExitingVehicleEvent

The event that is triggered when a player is exitting a vehicle.

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

Constructors

| Improve this Doc View Source

UnturnedPlayerExitingVehicleEvent(UnturnedPlayer, UnturnedVehicle, Vector3, Single)

Declaration
public UnturnedPlayerExitingVehicleEvent(UnturnedPlayer player, UnturnedVehicle vehicle, Vector3 pendingLocation, float pendingYaw)
Parameters
Type Name Description
UnturnedPlayer player
UnturnedVehicle vehicle
Vector3 pendingLocation
System.Single pendingYaw

Properties

| Improve this Doc View Source

IsCancelled

Declaration
public bool IsCancelled { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

PendingLocation

Gets or sets the location the player will get teleported to.

Declaration
public Vector3 PendingLocation { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

PendingYaw

Gets or sets the yaw to be set of the player.

Declaration
public float PendingYaw { get; set; }
Property Value
Type Description
System.Single
| 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

IPlayerExitingVehicleEvent
IPlayerEvent
IVehicleEvent
IEvent
ICancellableEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)