LuaScript
From Crumbled World Wiki
Functions
| return | function | description |
|---|---|---|
| string | getName() | Get work name. |
| string | getNetworkName() | Get unique network name. |
| int | getIndex() | Get Lua index, the index is unique. |
| string | getFileName() | Get the file name of the script. folder Path is not included. |
| Billboard | getBillboard() | Get the Billboard connected to this script. |
| SceneNode | getParentNode() | Returns the SceneNode which it is connected to |
| Billboard | getBillboard() | Get this scripts billboard. Billboards is used to relay information to other script. |
| callFunction(string name) | Call a given lua function without any parameters and no return variables. | |
| setName(string name) | Set scripts name. Used to identify this script from other script. | |
| setScriptNetworkId(string name) | Set a unique name to be able to use ComUnit::sendNetworkSync | |
| update() | force update. |