diag drawMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *gr([0-9]) *= *Diagnosis * " to "|gr$1= Diagnostic ")
m (Text replacement - "|size=0.75" to "|size= 0.75")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3diag
|game1= arma3


|1.86
|branch= diag
 
|version1= 1.86


|gr1= Diagnostic
|gr1= Diagnostic


| Activates specific debug visualization.
|descr= Activates a debug visualisation.


| [[diag_drawMode]] type
|s1= [[diag_drawMode]] type


|p1= type: [[String]] - Type of visualization<br>
|p1= type: [[String]] - type of visualisation. Can be one of:
{{Columns|2|
* "Normal"
* "Normal"
* "Roadway"
* "Roadway"
Line 21: Line 24:
* "ShadowBuffer"
* "ShadowBuffer"
* "Buoyancy"
* "Buoyancy"
* {{GVI|arma3|2.10|size= 0.75}} "Wire" - can be used along other visualisation
** first mode: pure wireframe, no normal rendering
** second mode: normal rendering combined with wireframe
** third mode: back to normal
}}
|r1= [[Nothing]]


| [[Nothing]]
|x1= <sqf>
 
diag_drawMode "FireGeometry";
|x1= <code>[[diag_drawMode]] "normal"</code>
sleep 5;
diag_drawMode "Normal";
</sqf>
 
|x2= "Wire" can be used along other modes:
<sqf>
diag_drawMode "Wire"; // switch to first Wire mode
diag_drawMode "Roadway"; // switch to Roadway like usual
 
diag_drawMode "Wire"; // switch to second Wire mode
diag_drawMode "ViewGeometry"; // switch to ViewGeometry, keeping the current Wire mode
 
diag_drawMode "Wire"; // disable Wire
</sqf>


|seealso= [[diag_list]]
|seealso= [[diag_list]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}

Latest revision as of 13:09, 21 December 2022

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

Description

Description:
Activates a debug visualisation.
Groups:
Diagnostic

Syntax

Syntax:
diag_drawMode type
Parameters:
type: String - type of visualisation. Can be one of:
  • "Normal"
  • "Roadway"
  • "Geometry"
  • "ViewGeometry"
  • "FireGeometry"
  • "Paths"
  • "ShadowVolume"
  • "ShadowBuffer"
  • "Buoyancy"
  • Arma 3 logo black.png2.10 "Wire" - can be used along other visualisation
    • first mode: pure wireframe, no normal rendering
    • second mode: normal rendering combined with wireframe
    • third mode: back to normal
Return Value:
Nothing

Examples

Example 1:
diag_drawMode "FireGeometry"; sleep 5; diag_drawMode "Normal";
Example 2:
"Wire" can be used along other modes:
diag_drawMode "Wire"; // switch to first Wire mode diag_drawMode "Roadway"; // switch to Roadway like usual diag_drawMode "Wire"; // switch to second Wire mode diag_drawMode "ViewGeometry"; // switch to ViewGeometry, keeping the current Wire mode diag_drawMode "Wire"; // disable Wire

Additional Information

See also:
diag_list

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