IVehicle
Interface · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll
public interface IVehicle : IEntityExtends: IEntity
Implemented or extended by: ILocalVehicle
Properties
Section titled “Properties”AngularVelocity
Section titled “AngularVelocity”Vector3 AngularVelocity { get; }DriverDuty
Section titled “DriverDuty”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.
FleetNumber
Section titled “FleetNumber”string? FleetNumber { get; }Fleet number, or null when unknown (always null for other players’ buses).
HofName
Section titled “HofName”string? HofName { get; }The selected timetable’s [name], or null.
IsLocal
Section titled “IsLocal”bool IsLocal { get; }The bus at this client. Always false for a server resource.
IsSpawned
Section titled “IsSpawned”bool IsSpawned { get; }Whether the bus is placed in the world. Until it is, the transform and motion are zero.
ModelPath
Section titled “ModelPath”string ModelPath { get; }OMSI-content-relative path of the .bus or .ovh file, with forward slashes.
OwnerId
Section titled “OwnerId”EntityId OwnerId { get; }The player driving it.
Registration
Section titled “Registration”string? Registration { get; }Number-plate text, or null when unknown (always null for other players’ buses).
Repaint
Section titled “Repaint”string? Repaint { get; }ScriptVariables
Section titled “ScriptVariables”IScriptVariables ScriptVariables { get; }Transform
Section titled “Transform”EntityTransform Transform { get; }Velocity
Section titled “Velocity”Vector3 Velocity { get; }World-space velocity, m/s.
