openOMSI GitHub Discord
Modding overview

Docs / Making content / Modding overview

Scripts and plugins

1 min readEdit this pagedocs/MODDING.md

  • 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 .oop scripts 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 reload paths.cfg, [passengercabin], sound.cfg, .bus, model.cfg and constfiles while driving. See Command line and developer tools.

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open