diag activeSQFScripts: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
|s1= [[diag_activeSQFScripts]] | |s1= [[diag_activeSQFScripts]] | ||
|r1= [[Array]] of [[Array | |r1= [[Array]] of [[Array]]s - to format [<nowiki/>[scriptName, fileName, isRunning, currentLine], ...]: | ||
* scriptName: [[String]] - | * scriptName: [[String]] - Returns: | ||
* | ** Script name set with [[scriptName]] | ||
** File name if script name is empty | |||
** <spawn> + first 100 characters if script name and file name are both empty | |||
* filePath: [[String]] - path of the parent script | |||
* isRunning: [[Boolean]] | * isRunning: [[Boolean]] | ||
* currentLine: [[Number]] - line currently executing | * currentLine: [[Number]] - line currently executing | ||
|x1= < | |x1= <sqf>0 spawn { hint str diag_activeSQFScripts; }; // displays [["<spawn> hint str diag_activeSQFScripts;", "", true, 1]]</sqf> | ||
|x2= < | |x2= <sqf> | ||
0 spawn { | |||
};</ | hint str diag_activeSQFScripts; // displays [["<spawn> hint str diag_activeSQFScripts;", "", true, 2]] | ||
}; | |||
</sqf> | |||
|x3= < | |x3= <sqf> | ||
0 spawn { | |||
scriptName "aScript"; | scriptName "aScript"; | ||
hint | hint str diag_activeSQFScripts; // displays [<nowiki/>["aScript", "", true, 3]] | ||
};</ | }; | ||
</sqf> | |||
|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]] | ||
}} | }} |
Latest revision as of 19:45, 7 April 2024
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 - Returns:
- Script name set with scriptName
- File name if script name is empty
- <spawn> + first 100 characters if script name and file name are both empty
- filePath: String - path of the parent script
- isRunning: Boolean
- currentLine: Number - line currently executing
- scriptName: String - Returns:
Examples
- Example 1:
- Example 2:
- Example 3:
- 0 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