diag activeSQFScripts: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(moved note to talk)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns an array containing all currently active SQF scripts/functions. |= Description
| Returns an array with active SQFs. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''diag_activeSQFScripts''' |= Syntax
| '''diag_activeSQFScripts''' |= Syntax


| <nowiki>[</nowiki>[name, fileName, isRunning, currentLine],...]: [[Array]]
* name: [[String]] -
* fileName: [[String]] - function- or filename
* isRunning: [[Boolean]] -
* currentLine: [[Number]] - line currently executing


| [script1, script2, script2,...]: [[Array]] <br/><br/>
|x1= <code>{[[systemChat]] [[str]] _x} [[forEach]] [[diag_activeSQFScripts]];</code>|= Example 1
Each script entry is an array itself with the following entries:<br/>
[function- or filename, filename, unknown boolean, line currently executing]|= RETURNVALUE
 
 
|x1= <code>{[[systemChat]] [[str]] _x} foreach diag_activeSQFScripts;</code>|= Example 1


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 40: Line 40:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on May 5, 2015 - 16:44 (UTC)</dd>
<dt class="note">[[User:Will|Will]]</dt>
<dd class="note">
return array with arrays... example -> <nowiki>[["life_fnc_test","",true,1]]</nowiki> ... first is the name of the function but the rest?!?
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 19:55, 5 May 2015


Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
{systemChat str _x} forEach diag_activeSQFScripts;

Additional Information

See also:
diag_logdiag_fpsdiag_fpsmindiag_framenodiag_tickTime

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