diag activeSQFScripts: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
m (parameter description) |
||
Line 11: | Line 11: | ||
|r1= [[Array]] of [[Array|Arrays]] - to format [<nowiki/>[scriptName, fileName, isRunning, currentLine], ...]: | |r1= [[Array]] of [[Array|Arrays]] - to format [<nowiki/>[scriptName, fileName, isRunning, currentLine], ...]: | ||
* scriptName: [[String]] - | * scriptName: [[String]] - shows the script name if it was set with [[scriptName]], otherwise the first few lines of the code are returned | ||
* | * filePath: [[String]] - path of the parent script | ||
* isRunning: [[Boolean]] | * isRunning: [[Boolean]] | ||
* currentLine: [[Number]] - line currently executing | * currentLine: [[Number]] - line currently executing |
Revision as of 12:15, 26 June 2022
Description
- Description:
- Returns information about active SQF scripts. To see number of all scripts currently in the scheduler use diag_activeScripts.
- Groups:
- Diagnostic
Syntax
- Syntax:
- diag_activeSQFScripts
- Return Value:
- Array of Arrays - to format [[scriptName, fileName, isRunning, currentLine], ...]:
- scriptName: String - shows the script name if it was set with scriptName, otherwise the first few lines of the code are returned
- filePath: String - path of the parent script
- isRunning: Boolean
- currentLine: Number - line currently executing
Examples
- Example 1:
- Example 2:
- Example 3:
- [] spawn { scriptName "aScript"; hint str diag_activeSQFScripts; // displays "aScript", "", true, 3 };
Additional Information
- See also:
- diag_log diag_fps diag_fpsmin diag_frameNo diag_tickTime diag_activeSQSScripts diag_activeMissionFSMs diag_activeScripts execVM spawn
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note