User Tools

Site Tools


Getting Started

Copy lgs.osm to your game directory. Create the directory scripts where you will save the Lua scripts.

Save your scripts with the name you will use in Dromed, plus the extension .lua. The script file must be saved before starting Dromed. Scripts added while Dromed is running will not be available until you close then reload the mission.

The game activates scripts by sending messages. In the Lua file, each global function is a message handler. When a message is received, a function with the same name is looked for in the script file. If you have functions which aren’t message handlers, they should be defined as local.

lgscript/getting_started.txt · Last modified: 2011/05/15 21:51 by telliamed