Lua Script object, write Lua programs that can interact with and control the level.
For more information about Lua scripting in Principia, see Principia Lua Scripting.
The following built-in libraries are available in the Principia Lua environment:
string (older versions require a flag to be enabled)
table (older versions require a flag to be enabled)
this: Reference to the unique LuaScript object itself, with methods that relate to the current LuaScript object.
game: Global object containing game related methods.
cam: Global object containing camera related methods.
world: Global object containing world related methods.
entity: Reference to a Principia game object, which can be retrieved using
creature: Extension of the
entity class for living objects such as robots.