Method CreateRandomVehicle
CreateRandomVehicle(Vector3, Single)
Declaration
public static Vehicle CreateRandomVehicle(Vector3 position, float heading = 0F)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to spawn the Vehicle at. |
| System.Single | heading | The heading of the Vehicle. |
Returns
| Type | Description |
|---|---|
| Vehicle |
Remarks
returns null if the Vehicle could not be spawned