Class UnturnedVehicleReplacingBatteryEvent
The event that is triggered when a player is replacing a vehicles battery.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleReplacingBatteryEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleReplacingBatteryEvent(UnturnedPlayer, UnturnedVehicle, Byte, Guid)
Declaration
public UnturnedVehicleReplacingBatteryEvent(UnturnedPlayer instigator, UnturnedVehicle vehicle, byte batteryQuality, Guid batteryItemGuid)
Parameters
Type | Name | Description |
---|---|---|
UnturnedPlayer | instigator | |
UnturnedVehicle | vehicle | |
System.Byte | batteryQuality | |
Guid | batteryItemGuid |
Properties
| Improve this Doc View SourceBatteryItemGuid
Gets the Guid of the new battery item.
Declaration
public Guid BatteryItemGuid { get; }
Property Value
Type | Description |
---|---|
Guid |
BatteryQuality
Gets the new battery quality value.
Declaration
public byte BatteryQuality { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Instigator
Gets the player replacing 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