OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class UnturnedVehicleLockUpdatingEvent

The event that is triggered when a vehicle lock status is getting updated.

Inheritance
System.Object
UnturnedVehicleEvent
UnturnedVehicleLockUpdatingEvent
Implements
IVehicleEvent
IEvent
ICancellableEvent
Inherited Members
UnturnedVehicleEvent.Vehicle
UnturnedVehicleEvent.IVehicleEvent.Vehicle
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleLockUpdatingEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent

Constructors

| Improve this Doc View Source

UnturnedVehicleLockUpdatingEvent(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 Source

Group

Gets the new lock owner group.

Declaration
public CSteamID? Group { get; }
Property Value
Type Description
System.Nullable<CSteamID>
| Improve this Doc View Source

Instigator

Gets the player locking or unlocking the vehicle.

Declaration
public UnturnedPlayer Instigator { get; }
Property Value
Type Description
UnturnedPlayer
| Improve this Doc View Source

IsCancelled

Declaration
public bool IsCancelled { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsLocking

Gets if the vehicle is to be locked or unlocked.

Declaration
public bool IsLocking { get; }
Property Value
Type Description
System.Boolean

Implements

IVehicleEvent
IEvent
ICancellableEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)