» Back To Index
Demoniak3D/LUA API: Scripts handling library
The
HYP_Script library allows to control launching, activation or desactivation of autonomous scripts.
A script is autonomous if it is created, in the XML source code, with a <script> node.
HYP_Script.Exec
HYP_Script.Enable
HYP_Script.Disable
Exec
Exec allows to launch the execution of another script.
Syntax
HYP_Script.Exec( name );
- name - [STR127] - name of the script as specified in the XML script by the "name" attribute.
Enable
Enable allows to activate a script which has been beforhand disabled with the HYP_Script.Disable() function.
Syntax
HYP_Script.Enable( name );
- name - [STR127] - name of the script as specified in the XML script by the "name" attribute.
Disable
Disable allows to disable (or to suspend) a script in progress and having a run_mode set to EXECUTE_EACH_FRAME.
Syntax
HYP_Script.Disable( script_name );
- name - [STR127] - name of the script as specified in the XML script by the "name" attribute.