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

Class UnturnedVehicleSiphoningEvent

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

Inheritance
System.Object
UnturnedVehicleEvent
UnturnedVehicleSiphoningEvent
Implements
IVehicleEvent
IEvent
ICancellableEvent
Inherited Members
UnturnedVehicleEvent.Vehicle
UnturnedVehicleEvent.IVehicleEvent.Vehicle
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleSiphoningEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent

Constructors

| Improve this Doc View Source

UnturnedVehicleSiphoningEvent(UnturnedVehicle, UnturnedPlayer, UInt16)

Declaration
public UnturnedVehicleSiphoningEvent(UnturnedVehicle vehicle, UnturnedPlayer instigator, ushort desiredAmount)
Parameters
Type Name Description
UnturnedVehicle vehicle
UnturnedPlayer instigator
System.UInt16 desiredAmount

Properties

| Improve this Doc View Source

DesiredAmount

Gets or sets the amount to siphone.

Declaration
public ushort DesiredAmount { get; set; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

Instigator

Gets the player siphoning the vehicle.

Declaration
public UnturnedPlayer Instigator { get; }
Property Value
Type Description
UnturnedPlayer
| Improve this Doc View Source

IsCancelled

Declaration
public bool IsCancelled { get; set; }
Property Value
Type Description
System.Boolean

Implements

IVehicleEvent
IEvent
ICancellableEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)