C++ synopsis
int simCreateScript(int scriptType, const char* scriptText, int options, const char* lang)
Arguments
- scriptType: the script type. Only simulation-, customization- or passive scripts are allowed
- scriptText: the content of the script
- options: bit-coded options:
- bit 0 set (1): script is initially disabled
- lang: language. A value different from "lua" or "python" disables the script. nullptr defaults to "lua"
Return
- -1 if operation was not successful, otherwise the handle of the script object
|