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

Class UnturnedVehicle

Inheritance
System.Object
UnturnedVehicle
Implements
IVehicle
IHasOwnership
Namespace: OpenMod.Unturned.Vehicles
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicle : object, IVehicle, IHasOwnership

Constructors

| Improve this Doc View Source

UnturnedVehicle(InteractableVehicle)

Declaration
public UnturnedVehicle(InteractableVehicle vehicle)
Parameters
Type Name Description
InteractableVehicle vehicle

Properties

| Improve this Doc View Source

Asset

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

Driver

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

Ownership

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

Passengers

Declaration
public IReadOnlyCollection<IEntity> Passengers { get; }
Property Value
Type Description
IReadOnlyCollection<IEntity>
| Improve this Doc View Source

State

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

Transform

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

Vehicle

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

VehicleInstanceId

Declaration
public string VehicleInstanceId { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

AddPassengerAsync(IEntity)

Declaration
public Task<bool> AddPassengerAsync(IEntity passenger)
Parameters
Type Name Description
IEntity passenger
Returns
Type Description
Task<System.Boolean>
| Improve this Doc View Source

DestroyAsync()

Declaration
public Task DestroyAsync()
Returns
Type Description
Task
| Improve this Doc View Source

RemovePassengerAsync(IEntity)

Declaration
public Task<bool> RemovePassengerAsync(IEntity passenger)
Parameters
Type Name Description
IEntity passenger
Returns
Type Description
Task<System.Boolean>

Implements

IVehicle
IHasOwnership

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)