Class UnturnedVehicleStealingBatteryEvent
The event that is triggered when a player is removing a battery.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleStealingBatteryEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleStealingBatteryEvent(UnturnedPlayer, UnturnedVehicle)
Declaration
public UnturnedVehicleStealingBatteryEvent(UnturnedPlayer instigator, UnturnedVehicle vehicle)
Parameters
Type | Name | Description |
---|---|---|
UnturnedPlayer | instigator | |
UnturnedVehicle | vehicle |
Properties
| Improve this Doc View SourceInstigator
Gets the player removing the battery.
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