Struct VehicleSpawnData
Represents the data required to spawn a vehicle.
public readonly struct VehicleSpawnData
- Inherited Members
Constructors
VehicleSpawnData(Seconds, int, Vector3, float, int, int, BlittableBoolean, int)
Initializes a new instance of the VehicleSpawnData struct.
public VehicleSpawnData(Seconds respawnDelay, int modelID, Vector3 position, float zRotation, int colour1, int colour2, BlittableBoolean siren, int interior)
Parameters
respawnDelaySecondsmodelIDintpositionVector3zRotationfloatcolour1intcolour2intsirenBlittableBooleaninteriorint
Fields
colour1
Gets the primary color of the vehicle.
public readonly int colour1
Field Value
colour2
Gets the secondary color of the vehicle.
public readonly int colour2
Field Value
interior
Gets the interior ID of the vehicle.
public readonly int interior
Field Value
modelID
Gets the model ID of the vehicle.
public readonly int modelID
Field Value
position
Gets the position where the vehicle will spawn.
public readonly Vector3 position
Field Value
respawnDelay
Gets the respawn delay for the vehicle.
public readonly Seconds respawnDelay
Field Value
siren
Gets a value indicating whether the vehicle has a siren.
public readonly BlittableBoolean siren
Field Value
zRotation
Gets the Z rotation of the vehicle.
public readonly float zRotation