trigger_script
trigger_script | |
---|---|
Type |
point |
Status |
supported |
This powerful entity allows you to put scripts made with AngelScript language on your map. Before Sven Co-op 5.0 you already were able to create almost everything with existed entities- this entity pushes imagination barrier even further allowing you to open an existed script.
1 Keyvalues
Script to load : m_iszScriptFile
The name of the script to load in "scripts\maps" directory, e.g. "mymap/my_script1.as".
Function to execute when triggered : m_iszScriptFunctionName
Function (declared in the opened script file) to call when trigger_script is triggered.
Time between thinks : m_flThinkDelta
If "Mode" is set to 'Think', this is a time delay between script calls.
Mode : m_iMode
Script call mode. 'Trigger' allows to execute script once, 'Think' executes script every (specified in "Time between thinks") time interval.
2 Flags
1 : Start on
Script is activated on start.