LuaScript | |
ID | 184 |
---|---|
Category | Tools/effects |
Sublayer width | 14 |
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:
math
string
(older versions require a flag to be enabled)table
(older versions require a flag to be enabled)bitop32
(1.5.2+)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 world:get_entity()
.creature
: Extension of the entity
class for living objects such as robots.