mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 03:49:52 +03:00
[Lua] Allow global functions to play scripts. (#5440)
This commit is contained in:
parent
1d5c06ccd6
commit
ba1073ace6
2 changed files with 10 additions and 8 deletions
|
@ -98,7 +98,9 @@ enum ScriptReference {
|
|||
SCRIPT_MIX_FIRST,
|
||||
SCRIPT_MIX_LAST=SCRIPT_MIX_FIRST+MAX_SCRIPTS-1,
|
||||
SCRIPT_FUNC_FIRST,
|
||||
SCRIPT_FUNC_LAST=SCRIPT_FUNC_FIRST+MAX_SPECIAL_FUNCTIONS-1,
|
||||
SCRIPT_FUNC_LAST=SCRIPT_FUNC_FIRST+MAX_SPECIAL_FUNCTIONS-1, // model functions
|
||||
SCRIPT_GFUNC_FIRST,
|
||||
SCRIPT_GFUNC_LAST=SCRIPT_GFUNC_FIRST+MAX_SPECIAL_FUNCTIONS-1, // global functions
|
||||
SCRIPT_TELEMETRY_FIRST,
|
||||
SCRIPT_TELEMETRY_LAST=SCRIPT_TELEMETRY_FIRST+MAX_SCRIPTS, // telem0 and telem1 .. telem7
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue