Class UnturnedVehicleSiphoningEvent
The event that is triggered when a player is siphoning a vehicle.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleSiphoningEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleSiphoningEvent(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 SourceDesiredAmount
Gets or sets the amount to siphone.
Declaration
public ushort DesiredAmount { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Instigator
Gets the player siphoning the vehicle.
Declaration
public UnturnedPlayer Instigator { get; }
Property Value
Type | Description |
---|---|
UnturnedPlayer |
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
ICancellableEvent