Class UnturnedVehicleLockUpdatingEvent
The event that is triggered when a vehicle lock status is getting updated.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleLockUpdatingEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleLockUpdatingEvent(UnturnedPlayer, UnturnedVehicle, Nullable<CSteamID>, Boolean)
Declaration
public UnturnedVehicleLockUpdatingEvent(UnturnedPlayer instigator, UnturnedVehicle vehicle, CSteamID? group, bool isLocking)
Parameters
Type | Name | Description |
---|---|---|
UnturnedPlayer | instigator | |
UnturnedVehicle | vehicle | |
System.Nullable<CSteamID> | group | |
System.Boolean | isLocking |
Properties
| Improve this Doc View SourceGroup
Gets the new lock owner group.
Declaration
public CSteamID? Group { get; }
Property Value
Type | Description |
---|---|
System.Nullable<CSteamID> |
Instigator
Gets the player locking or unlocking 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 |
IsLocking
Gets if the vehicle is to be locked or unlocked.
Declaration
public bool IsLocking { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
ICancellableEvent