Class UnturnedVehicleLockUpdatedEvent
The event that is triggered when the vehicle lock has been updated.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleLockUpdatedEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleLockUpdatedEvent(UnturnedPlayer, UnturnedVehicle, Nullable<CSteamID>, Boolean)
Declaration
public UnturnedVehicleLockUpdatedEvent(UnturnedPlayer instigator, UnturnedVehicle vehicle, CSteamID? group, bool isLocked)
Parameters
Type | Name | Description |
---|---|---|
UnturnedPlayer | instigator | |
UnturnedVehicle | vehicle | |
System.Nullable<CSteamID> | group | |
System.Boolean | isLocked |
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 |
IsLocked
Gets if the vehicle has been locked or unlocked.
Declaration
public bool IsLocked { get; }
Property Value
Type | Description |
---|---|
System.Boolean |