Class UnturnedVehicleCarjackingEvent
The event that is triggered when a player is trying to carjack a vehicle.
Namespace: OpenMod.Unturned.Vehicles.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleCarjackingEvent : UnturnedVehicleEvent, IVehicleEvent, IEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedVehicleCarjackingEvent(UnturnedVehicle, UnturnedPlayer, Vector3, Vector3)
Declaration
public UnturnedVehicleCarjackingEvent(UnturnedVehicle vehicle, UnturnedPlayer instigator, Vector3 force, Vector3 torque)
Parameters
Type | Name | Description |
---|---|---|
UnturnedVehicle | vehicle | |
UnturnedPlayer | instigator | |
Vector3 | force | |
Vector3 | torque |
Properties
| Improve this Doc View SourceForce
Gets or sets the force to be applied.
Declaration
public Vector3 Force { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Instigator
Gets the player trying to carjack.
Declaration
public UnturnedPlayer Instigator { get; }
Property Value
Type | Description |
---|---|
UnturnedPlayer |
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Torque
Gets or sets the torque to be applied.
Declaration
public Vector3 Torque { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Implements
ICancellableEvent