diag activeSQFScripts: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
Lou Montana (talk | contribs) m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>") |
||
Line 13: | Line 13: | ||
| [[diag_activeSQFScripts]] |Syntax= | | [[diag_activeSQFScripts]] |Syntax= | ||
| [[Array]] of [[Array|Arrays]] - to format <nowiki | | [[Array]] of [[Array|Arrays]] - to format [<nowiki/>[scriptName, fileName, isRunning, currentLine], ...]: | ||
* scriptName: [[String]] - function or filename. Custom name can be set with [[scriptName]] | * scriptName: [[String]] - function or filename. Custom name can be set with [[scriptName]] | ||
* fileName: [[String]] | * fileName: [[String]] | ||
Line 19: | Line 19: | ||
* currentLine: [[Number]] - line currently executing | * currentLine: [[Number]] - line currently executing | ||
|x1= <code>[] [[spawn]] { [[hint]] [[str]] [[diag_activeSQFScripts]]; }; {{codecomment|// displays <nowiki | |x1= <code>[] [[spawn]] { [[hint]] [[str]] [[diag_activeSQFScripts]]; }; {{codecomment|// displays [<nowiki/>["<spawn> hint str diag_activeSQFScripts;", "", true, 1]]}}</code> |Example 1= | ||
|x2= <code>[] [[spawn]] { | |x2= <code>[] [[spawn]] { | ||
[[hint]] [[str]] [[diag_activeSQFScripts]]; {{codecomment|// displays <nowiki | [[hint]] [[str]] [[diag_activeSQFScripts]]; {{codecomment|// displays [<nowiki/>["<spawn> hint str diag_activeSQFScripts;", "", true, '''2''']]}} | ||
};</code> |Example 2= | };</code> |Example 2= | ||
|x3= <code>[] [[spawn]] { | |x3= <code>[] [[spawn]] { | ||
[[scriptName]] "aScript"; | [[scriptName]] "aScript"; | ||
[[hint]] [[str]] [[diag_activeSQFScripts]]; {{codecomment|// displays <nowiki | [[hint]] [[str]] [[diag_activeSQFScripts]]; {{codecomment|// displays [<nowiki/>['''"aScript"''', "", true, 3]]}} | ||
};</code> |Example 3= | };</code> |Example 3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 12:27, 19 March 2020
Description
- Description:
- Returns information about active SQF scripts. To see number of all scripts currently in the scheduler use diag_activeScripts.
- Groups:
- Uncategorised
Syntax
- Syntax:
- diag_activeSQFScripts
- Return Value:
- Array of Arrays - to format [[scriptName, fileName, isRunning, currentLine], ...]:
- scriptName: String - function or filename. Custom name can be set with scriptName
- fileName: String
- isRunning: Boolean
- currentLine: Number - line currently executing
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_logdiag_fpsdiag_fpsmindiag_frameNodiag_tickTimediag_activeSQSScriptsdiag_activeMissionFSMsdiag_activeScriptsexecVMspawn
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