Class UnturnedVehicleDamagingTireEvent
The event that is triggered when damage is dealt to a tire of a vehicle.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleDamagingTireEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleDamagingTireEvent(UnturnedVehicle, CSteamID, Int32, EDamageOrigin)
Declaration
public UnturnedVehicleDamagingTireEvent(UnturnedVehicle vehicle, CSteamID instigator, int tireIndex, EDamageOrigin damageOrigin)
Parameters
Type | Name | Description |
---|---|---|
UnturnedVehicle | vehicle | |
CSteamID | instigator | |
System.Int32 | tireIndex | |
EDamageOrigin | damageOrigin |
Properties
| Improve this Doc View SourceDamageOrigin
Gets the damage origin.
Declaration
public EDamageOrigin DamageOrigin { get; }
Property Value
Type | Description |
---|---|
EDamageOrigin |
Instigator
Gets the Steam ID of the entity causing the damage.
Declaration
public CSteamID? Instigator { get; }
Property Value
Type | Description |
---|---|
System.Nullable<CSteamID> |
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TireIndex
Gets the index of the tire that is getting damaged.
Declaration
public int TireIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
ICancellableEvent