luaapi:px_scriptman
This is an old revision of the document!
Script manager metatable functions
Function | Description |
---|---|
ScriptMan.GetScript() | Return script table with sName, bEnabled, iMemUsage. |
ScriptMan.GetScripts() | Return table with scripts as tables with sName, bEnabled, iMemUsage. |
ScriptMan.MoveUp(sScriptName) | Move script up in script order. Return nil when failed, true if success. |
ScriptMan.MoveDown(sScriptName) | Move script down in script order. Return nil when failed, true if success. |
ScriptMan.StartScript(sScriptName) | Start script with given name. Return nil when failed, true if success. |
ScriptMan.RestartScript(sScriptName) | Restart script with given name. Return nil when failed, true if success. |
ScriptMan.StopScript(sScriptName) | Stop script with given name. Return nil when failed, true if success. |
ScriptMan.Restart() | Restart scripting interface. |
ScriptMan.Refresh() | Refresh script list. |
luaapi/px_scriptman.1351382768.txt.gz · Last modified: 28/10/2012 00:06 by ppk