Docs / Making content / HTML textures
omsi.vehicle (version 1)
| path | meaning |
|---|---|
info.number, .ident, .yard, .route, .nextStop |
text variables of the bus |
motion.speedKmh, .heading, .pitch, .bank, .steeringDeg, .x, .y, .z, .odometerKm |
movement and position |
engine.running, .rpm, .throttle, .brake, .clutch, .gear, .tankContent |
drive train and pedals |
electrics.on, .busbarMain, .busbarAvailable, .failure |
on-board network |
battery.on |
battery switch, null when the bus has none |
doors.count, .anyOpen |
number of door leaves (door_0, door_1 ...) and whether any is open |
doors.list[i].number, .open (0..1), .isOpen |
list[0] is door 1 |
passengers.onboard |
people aboard |
passengers.entries[i], .exits[i] |
number, open, requested (PAX_Entry/Exit<n>_Open/_Req) |
lights.headlights |
0 off, 1 parking, 2 dipped, 3 main beam |
lights.brake, .reverse, .fog, .interior |
lamps (interior is 0..1) |
lights.indicator |
0 off, 1 left, 2 right, 3 hazard. .indicatorLeft and .indicatorRight are the lamps, .hazard the switch |
brakes.parking, .stop, .kneeling |
switches |
wipers.running |
windscreen wipers |
cabin.temperature |
cabin air in °C |
condition.dirt, .crashes, .lastImpactKJ, .streetCondition |
wear and road |
train.trailers |
coupled vehicles behind this one |
route.* |
line, stops, delay: see the next section |
doors.anyOpen follows what the passengers are told is open (PAX_*_Open) if the bus has
those variables, and the door leaves (door_<n>) if not. Some mod buses use door_<n> for
other things, so don't be surprised if a strange bus behaves oddly here.
Something wrong or missing? Fix it on GitHub or open an issue.