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)
The API is divided up into several classes:
this: A reference to the unique LuaScript object itself, with methods that relate to the current LuaScript object.
game: A global object containing game related methods.
cam: A global object containing camera related methods.
world: A global object containing world related methods.
entity: Reference to a Principia game object, which can be retrieved using
creature: Extension of the
entityclass for living objects such as robots.