diag activeSQFScripts: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Stop using New_Scripting_Commands_List categories. It is done automatically now)
(description, example)
Line 13: Line 13:
| '''diag_activeSQFScripts''' |= Syntax
| '''diag_activeSQFScripts''' |= Syntax


| <nowiki>[</nowiki>[name, fileName, isRunning, currentLine],...]: [[Array]]
| <nowiki>[</nowiki>[scriptName, fileName, isRunning, currentLine],...]: [[Array]]
* name: [[String]] - function- or filename
* scriptName: [[String]] - function or filename. Custom name can be set with [[scriptName]]
* fileName: [[String]] -  
* fileName: [[String]] -  
* isRunning: [[Boolean]] -  
* isRunning: [[Boolean]] -  
Line 21: Line 21:
|x1= <code>{[[systemChat]] [[str]] _x} [[forEach]] [[diag_activeSQFScripts]];</code>|= Example 1
|x1= <code>{[[systemChat]] [[str]] _x} [[forEach]] [[diag_activeSQFScripts]];</code>|= Example 1


|x2= <code>[] [[spawn]] {
[[hint]] [[str]] [[diag_activeSQFScripts]]; //<nowiki>[</nowiki>["<spawn>","",true,1]]
};
[] [[spawn]] {
[[scriptName]] "myScript";
[[hint]] [[str]] [[diag_activeSQFScripts]]; //<nowiki>[</nowiki>["myScript","",true,1]]
};</code>|=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 10:58, 3 June 2015


Hover & click on the images for description

Description

Description:
Returns an array with active SQFs.
Groups:
Uncategorised

Syntax

Syntax:
diag_activeSQFScripts
Return Value:
[[scriptName, fileName, isRunning, currentLine],...]: Array

Examples

Example 1:
{systemChat str _x} forEach diag_activeSQFScripts;
Example 2:
[] spawn { hint str diag_activeSQFScripts; //[["<spawn>","",true,1]] }; [] spawn { scriptName "myScript"; hint str diag_activeSQFScripts; //[["myScript","",true,1]] };

Additional Information

See also:
diag_logdiag_fpsdiag_fpsmindiag_framenodiag_tickTimediag_activeSQSScriptsdiag_activeMissionFSMs

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