diag activeSQFScripts: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatted return value)
m (minor fixes)
Line 1: Line 1:
{{DISPLAYTITLE:diag_activeSQFScripts}}
{{DISPLAYTITLE:diag_activeSQFScripts}}
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.44|= Game version
|1.44|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns an array with active SQFs. |= Description
| Returns information about active [[SQF]] scripts. |Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| [[Array]] - format <nowiki>[</nowiki>[scriptName, fileName, isRunning, currentLine],...]:
| [[Array]] of [[Array|Arrays]] - to format <nowiki>[</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]]
* isRunning: [[Boolean]] -
* isRunning: [[Boolean]]
* currentLine: [[Number]] - line currently executing
* currentLine: [[Number]] - line currently executing


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


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


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


| [[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]]|See also=
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}


Line 45: Line 42:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 23:17, 5 July 2018


Hover & click on the images for description

Description

Description:
Returns information about active SQF scripts.
Groups:
Uncategorised

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