diag activeSQFScripts: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{DISPLAYTITLE:diag_activeSQFScripts}}
{{DISPLAYTITLE:diag_activeSQFScripts}}
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.44|Game version=
|1.44


|gr1= Diagnosis |GROUP1=
|gr1= Diagnosis


| Returns information about active [[SQF]] scripts. To see number of all scripts currently in the scheduler use [[diag_activeScripts]]. |Description=
| Returns information about active [[SQF]] scripts. To see number of all scripts currently in the scheduler use [[diag_activeScripts]].


| [[diag_activeSQFScripts]] |Syntax=
| [[diag_activeSQFScripts]]


| [[Array]] of [[Array|Arrays]] - to format [<nowiki/>[scriptName, fileName, isRunning, currentLine], ...]:
| [[Array]] of [[Array|Arrays]] - to format [<nowiki/>[scriptName, fileName, isRunning, currentLine], ...]:
Line 18: Line 18:
* currentLine: [[Number]] - line currently executing
* currentLine: [[Number]] - line currently executing


|x1= <code>[] [[spawn]] { [[hint]] [[str]] [[diag_activeSQFScripts]]; }; {{codecomment|// displays [<nowiki/>["<spawn> hint str diag_activeSQFScripts;", "", true, 1]]}}</code> |Example 1=
|x1= <code>[] [[spawn]] { [[hint]] [[str]] [[diag_activeSQFScripts]]; }; {{codecomment|// displays [<nowiki/>["<spawn> hint str diag_activeSQFScripts;", "", true, 1]]}}</code>


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


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


| [[diag_log]], [[diag_fps]], [[diag_fpsmin]], [[diag_frameNo]], [[diag_tickTime]], [[diag_activeSQSScripts]], [[diag_activeMissionFSMs]], [[diag_activeScripts]], [[execVM]], [[spawn]]|See also=
| [[diag_log]], [[diag_fps]], [[diag_fpsmin]], [[diag_frameNo]], [[diag_tickTime]], [[diag_activeSQSScripts]], [[diag_activeMissionFSMs]], [[diag_activeScripts]], [[execVM]], [[spawn]]
}}
}}



Revision as of 00:29, 18 January 2021


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:
Diagnosis

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_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

Notes

Bottom Section