Class UnturnedVehicleSpawner
Inheritance
System.Object
UnturnedVehicleSpawner
Implements
Namespace: OpenMod.Unturned.Vehicles
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedVehicleSpawner : object, IVehicleSpawner
Methods
| Improve this Doc View SourceSpawnVehicleAsync(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> |