Docs / Making content / Modding overview
Scripts and plugins
- Script variables and string variables have no count limit.
(M.V.GetRadioName)and(M.V.GetRadioSong)put the bus radio's station name and song title on the string stack. Both are empty while the radio is off or the station sends nothing. OMSI 2 does not have them, so check for an empty string.- A vehicle can carry its own Lua or
.oopscripts with[vehicle_script]. Lua plugins can read and write script variables, fire triggers and react to game events. See Plugins and the plugin API. - Map objects can run Lua scripts: see Object scripts.
- The developer tools (
Ctrl+Shift+D) show and hold variables, draw paths, places, boxes, axles, lights, mirrors and views over the bus, and reloadpaths.cfg,[passengercabin],sound.cfg,.bus,model.cfgand constfiles while driving. See Command line and developer tools.
Something wrong or missing? Fix it on GitHub or open an issue.