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

Class UnturnedVehicleSpawner

Inheritance
System.Object
UnturnedVehicleSpawner
Implements
IVehicleSpawner
Namespace: OpenMod.Unturned.Vehicles
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleSpawner : object, IVehicleSpawner

Methods

| Improve this Doc View Source

SpawnVehicleAsync(System.Numerics.Vector3, System.Numerics.Quaternion, String, IVehicleState)

Declaration
public Task<IVehicle> SpawnVehicleAsync(System.Numerics.Vector3 position, System.Numerics.Quaternion rotation, string vehicleAssetId, IVehicleState state = null)
Parameters
Type Name Description
System.Numerics.Vector3 position
System.Numerics.Quaternion rotation
System.String vehicleAssetId
IVehicleState state
Returns
Type Description
Task<IVehicle>

Implements

IVehicleSpawner

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)