Docs / Making content / Modding overview
Passengers
On this page
Passenger doors#
OMSI 2 has door variables for eight [entry] and eight [exit] paths. openOMSI has them for
sixteen of each: PAX_Entry8_Open to PAX_Entry15_Open, the same with _Req, and the same for
PAX_Exit.
- An entry or exit past the eighth becomes a door of its own once a script sets its
_Openvariable (or a varlist lists it). Its passengers then wait for that variable and request the door through its own_Req. - Without its own variable, it opens with the eighth door, as in OMSI 2. Its passengers'
requests go through the eighth's
_Req. (OMSI 2 loses these requests.)
PAX_Entry<n>_Busy and PAX_Exit<n>_Busy (n 0 to 15) are 1 while someone is on the door's
threshold or between the door and the step outside: what a light barrier sees. People queueing
outside a closed door, in the aisle or on the upper deck do not count.
- A door script can keep a door open, or open it again, while
_Busyis set. - Like
_Req, they are written before the scripts run each frame and cleared after. - A door past the eighth without its own variables reports through the eighth's.
Passenger places#
In openOMSI a [passpos] may name script variables on the lines after its five values:
[passpos]
0.94
0.04
0.92
0.43
0
layout_transverse
seat_12_taken- First extra line: while this variable is 0, no new passenger takes the place. Whoever sits there stays until they get off. A bus can have two seating layouts and switch with a setvar.
- Second extra line: the game sets this variable to 1 while someone is on the place and to 0 when it is free. A tip-up seat can fold down for the person on it.
- Both are ordinary variables from the bus's varlists.
- A place without the lines, or naming a variable the scripts do not have, is always available.
- A blank line or the next block ends the list. OMSI 2 skips the lines.
Something wrong or missing? Fix it on GitHub or open an issue.