Skip to content

IVehicle

Interface · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll

public interface IVehicle : IEntity

Extends: IEntity

Implemented or extended by: ILocalVehicle

Vector3 AngularVelocity { get; }
DriverDuty? DriverDuty { get; }

The owner’s OMX timetable duty. On a dedicated server this is the duty reported by the owning game client; null means the bus is in free roam.

string? FleetNumber { get; }

Fleet number, or null when unknown (always null for other players’ buses).

string? HofName { get; }

The selected timetable’s [name], or null.

bool IsLocal { get; }

The bus at this client. Always false for a server resource.

bool IsSpawned { get; }

Whether the bus is placed in the world. Until it is, the transform and motion are zero.

string ModelPath { get; }

OMSI-content-relative path of the .bus or .ovh file, with forward slashes.

EntityId OwnerId { get; }

The player driving it.

string? Registration { get; }

Number-plate text, or null when unknown (always null for other players’ buses).

string? Repaint { get; }
IScriptVariables ScriptVariables { get; }
EntityTransform Transform { get; }
Vector3 Velocity { get; }

World-space velocity, m/s.