Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👼 Script: global
thisScript
& getScriptDetails()
;
new global var in every script: `const int thisScript = {};` containing the ScriptUnitID aka uniqueId aka NID of the script. /** * Returns active ScriptUnitIDs; check agains global var `thisScript` or use `getScriptDetails()` to get name etc... */ array<int> getRunningScripts(); /** * Returns all info about running script; obtain the NID from `getRunningScripts()`, global var `thisScript` or event callbacks: * * "uniqueId" (int64) * * "scriptName" (string) * * "scriptCategory" (enum ScriptCategory) * * "eventMask" (int64) * * "scriptBuffer" (string) */ dictionary@ getScriptDetails(int nid);
- Loading branch information