Table of Contents

Class VehicleSpawner

Namespace
LibreRally
Assembly
LibreRally.dll

Main script responsible for spawning vehicles, managing UI overlays, and handling telemetry.

[ComponentCategory("LibreRally")]
public class VehicleSpawner : SyncScript, IIdentifiable, ICollectorHolder
Inheritance
SyncScript
VehicleSpawner
Implements
IIdentifiable
ICollectorHolder
Inherited Members

Properties

ConfigFileName

Name of the .pc config file to load (with or without .pc extension). E.g. "rally_pro_asphalt" or "rally_pro_asphalt.pc". Leave empty to auto-detect (prefers rally_pro_asphalt.pc if present).

public string ConfigFileName { get; set; }

Property Value

string

LiveTuningBridgeEnabled

Gets or sets a value indicating whether the localhost live tuning bridge is enabled.

public bool LiveTuningBridgeEnabled { get; set; }

Property Value

bool

LiveTuningBridgePort

Gets or sets the localhost TCP port used by the live tuning bridge.

public int LiveTuningBridgePort { get; set; }

Property Value

int

OutGaugeDelayCentiseconds

Gets or sets the delay between OutGauge packets in centiseconds.

public int OutGaugeDelayCentiseconds { get; set; }

Property Value

int

OutGaugeEnabled

Gets or sets a value indicating whether OutGauge telemetry is enabled.

public bool OutGaugeEnabled { get; set; }

Property Value

bool

OutGaugeId

Gets or sets the unique ID for OutGauge telemetry.

public int OutGaugeId { get; set; }

Property Value

int

OutGaugeIp

Gets or sets the target IP address for OutGauge telemetry.

public string OutGaugeIp { get; set; }

Property Value

string

OutGaugePort

Gets or sets the target port for OutGauge telemetry.

public int OutGaugePort { get; set; }

Property Value

int

OutSimDelayCentiseconds

Gets or sets the delay between OutSim packets in centiseconds.

public int OutSimDelayCentiseconds { get; set; }

Property Value

int

OutSimEnabled

Gets or sets a value indicating whether OutSim telemetry is enabled.

public bool OutSimEnabled { get; set; }

Property Value

bool

OutSimId

Gets or sets the unique ID for OutSim telemetry.

public int OutSimId { get; set; }

Property Value

int

OutSimIp

Gets or sets the target IP address for OutSim telemetry.

public string OutSimIp { get; set; }

Property Value

string

OutSimPort

Gets or sets the target port for OutSim telemetry.

public int OutSimPort { get; set; }

Property Value

int

SpawnPosition

Gets or sets the initial spawn position for the vehicle.

public Vector3 SpawnPosition { get; set; }

Property Value

Vector3

VehicleFolderPath

Gets or sets the path to the folder containing BeamNG vehicles.

public string VehicleFolderPath { get; set; }

Property Value

string

Methods

Start()

Initializes the track, overlays, and vehicle catalog at scene startup.

public override void Start()

Update()

Handles per-frame input, telemetry, and debug updates for spawned vehicles.

public override void Update()