diag activeSQFScripts: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\{\{cc\|([^ ]*)\}\}([^ ]*)<\/code>" to "<code>$1// $2$3</code>")
m (Text replacement - "\{\{cc\|([^} ]*)\}\}" to "// $1")
Line 19: Line 19:


|x2= <code>[] [[spawn]] {
|x2= <code>[] [[spawn]] {
[[hint]] [[str]] [[diag_activeSQFScripts]]; {{cc|displays [<nowiki/>["<spawn> hint str diag_activeSQFScripts;", "", true, '''2''']]}}
[[hint]] [[str]] [[diag_activeSQFScripts]]; // displays [<nowiki/>["<spawn> hint str diag_activeSQFScripts;", "", true, '''2''']]
};</code>
};</code>


|x3= <code>[] [[spawn]] {
|x3= <code>[] [[spawn]] {
[[scriptName]] "aScript";
[[scriptName]] "aScript";
[[hint]] [[str]] [[diag_activeSQFScripts]]; {{cc|displays [<nowiki/>['''"aScript"''', "", true, 3]]}}
[[hint]] [[str]] [[diag_activeSQFScripts]]; // displays [<nowiki/>['''"aScript"''', "", true, 3]]
};</code>
};</code>


|seealso= [[diag_log]] [[diag_fps]] [[diag_fpsmin]] [[diag_frameNo]] [[diag_tickTime]] [[diag_activeSQSScripts]] [[diag_activeMissionFSMs]] [[diag_activeScripts]] [[execVM]] [[spawn]]
|seealso= [[diag_log]] [[diag_fps]] [[diag_fpsmin]] [[diag_frameNo]] [[diag_tickTime]] [[diag_activeSQSScripts]] [[diag_activeMissionFSMs]] [[diag_activeScripts]] [[execVM]] [[spawn]]
}}
}}

Revision as of 12:26, 12 May 2022

Hover & click on the images for description

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], ...]:

Examples

Example 1:
[] spawn { hint str diag_activeSQFScripts; }; // displays [["<spawn> hint str diag_activeSQFScripts;", "", true, 1]]
Example 2:
[] spawn { hint str diag_activeSQFScripts; // displays [["<spawn> hint str diag_activeSQFScripts;", "", true, 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