Lua
From Data Realms Wiki
Revision as of 15:10, 19 January 2010 by 84.136.66.156 (Talk)
Syntax If you have no idea how to use Lua, start here.
| Datatypes Descriptions of the data types Lua uses.
| ||||
Functions Listing of known functions.
| Official Reference Raw output generated directly from Data's source.
|
Lua is a scripting language which has been embedded in Cortex Command since the twenty-first release. Lua can be run from the in-game console or attached to scenes and objects.
Scenes
Scene-attached Lua scripts are only loaded when a scene activity is loaded from the campaign screen; the scene the activity uses can be loaded without the script via the skirmish menu. The recently introduced campaign missions serve as examples of using Lua to create missions and place them on the campaign map.
Objects
Scripts attached to objects can run a different set of instructions whenever that object is created, updated (a game simulation update), or destroyed.