Class UnturnedVehicleRepairingEvent
The event that is triggered when a player is repairing a vehicle.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleRepairingEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleRepairingEvent(UnturnedVehicle, CSteamID, UInt16)
Declaration
public UnturnedVehicleRepairingEvent(UnturnedVehicle vehicle, CSteamID instigator, ushort pendingTotalHealing)
Parameters
Type | Name | Description |
---|---|---|
UnturnedVehicle | vehicle | |
CSteamID | instigator | |
System.UInt16 | pendingTotalHealing |
Properties
| Improve this Doc View SourceInstigator
Gets the player repairing the vehicle.
Declaration
public CSteamID Instigator { get; }
Property Value
Type | Description |
---|---|
CSteamID |
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PendingTotalHealing
Gets or sets the amount of health to restore.
Declaration
public ushort PendingTotalHealing { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Implements
ICancellableEvent