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
-
SyncScriptVehicleSpawner
- Implements
-
IIdentifiableICollectorHolder
- 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
LiveTuningBridgeEnabled
Gets or sets a value indicating whether the localhost live tuning bridge is enabled.
public bool LiveTuningBridgeEnabled { get; set; }
Property Value
LiveTuningBridgePort
Gets or sets the localhost TCP port used by the live tuning bridge.
public int LiveTuningBridgePort { get; set; }
Property Value
OutGaugeDelayCentiseconds
Gets or sets the delay between OutGauge packets in centiseconds.
public int OutGaugeDelayCentiseconds { get; set; }
Property Value
OutGaugeEnabled
Gets or sets a value indicating whether OutGauge telemetry is enabled.
public bool OutGaugeEnabled { get; set; }
Property Value
OutGaugeId
Gets or sets the unique ID for OutGauge telemetry.
public int OutGaugeId { get; set; }
Property Value
OutGaugeIp
Gets or sets the target IP address for OutGauge telemetry.
public string OutGaugeIp { get; set; }
Property Value
OutGaugePort
Gets or sets the target port for OutGauge telemetry.
public int OutGaugePort { get; set; }
Property Value
OutSimDelayCentiseconds
Gets or sets the delay between OutSim packets in centiseconds.
public int OutSimDelayCentiseconds { get; set; }
Property Value
OutSimEnabled
Gets or sets a value indicating whether OutSim telemetry is enabled.
public bool OutSimEnabled { get; set; }
Property Value
OutSimId
Gets or sets the unique ID for OutSim telemetry.
public int OutSimId { get; set; }
Property Value
OutSimIp
Gets or sets the target IP address for OutSim telemetry.
public string OutSimIp { get; set; }
Property Value
OutSimPort
Gets or sets the target port for OutSim telemetry.
public int OutSimPort { get; set; }
Property Value
SpawnPosition
Gets or sets the initial spawn position for the vehicle.
public Vector3 SpawnPosition { get; set; }
Property Value
VehicleFolderPath
Gets or sets the path to the folder containing BeamNG vehicles.
public string VehicleFolderPath { get; set; }
Property Value
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()