diag enabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:diag_enabled}}
{{RV|type=command
{{Command


| arma3diag
|game1= arma3
|version1= 1.00


|1.00
|branch= diag


|arg=  |Multiplayer Arguments("local" or "global")=
|gr1= Diagnostic


|eff=
|descr= Checks whether specific diagnostic mode is activated.


|serverExec=
|s1= [[diag_enabled]]  mode


|gr1= Diagnosis
|p1= mode: [[String]] - see [[Arma 3: Diagnostics Exe]]


| Checks whether specific diagnostic mode is activated.
|r1= [[Boolean]] - [[true]] when enabled, [[false]] when disabled


| '''diag_enabled''' diag_mode
|x1= <sqf>
 
"Animation" diag_enable true;
|p1= diag_mode: [[String]]  - See [[Arma 3 Diagnostics Exe]]
diag_enabled "Animation"; // returns true
 
</sqf>
| [[Boolean]] - [[true]] when enabled, [[false]] when disabled
 
 
|x1=<code>"Animation" '''diag_enable''' [[true]];
'''diag_enabled''' "Animation";//returns [[true]]
</code>
 
| [[Arma 3 Diagnostics Exe]] [[diag_toggle]] [[diag_enable]]


|seealso= [[Arma 3: Diagnostics Exe]] [[diag_toggle]] [[diag_enable]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">[[User:User Name|User Name]]</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:43, 3 September 2024

Hover & click on the images for description
Only available in Diagnostic branch(es).

Description

Description:
Checks whether specific diagnostic mode is activated.
Groups:
Diagnostic

Syntax

Syntax:
diag_enabled mode
Parameters:
mode: String - see Arma 3: Diagnostics Exe
Return Value:
Boolean - true when enabled, false when disabled

Examples

Example 1:
"Animation" diag_enable true; diag_enabled "Animation"; // returns true

Additional Information

See also:
Arma 3: Diagnostics Exe diag_toggle diag_enable

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