Leopard20/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (branch)
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
{{RV|type=command


|game1= arma3
|branch= diag
|version1= 2.00
|gr1= Diagnostic
|descr= Returns the terrain height at the specified location as a scalar. It is basically the same as:
<code>_worldPos [[params]] ["_x", "_y"];
[ [[floor]](_x/[[diag_getTerrainGrid]]), [[floor]](_y/[[diag_getTerrainGrid]]) ];</code>
{{Feature | Warning | Command is only available when using [[Arma 3: Diagnostics Exe]] on Dev-Branch.}}
|s1= '''diag_getTerrainSegmentOffset''' PositionWorld
|p1= PositionWorld: [[Position2D]] or [[Position3D]] - Position in world coordinates.
|r1= [[Position2D]] - Returns [x,y] of terrain segment (integer, basically pixel coordinates in heightmap)
|seealso= [[diag_getTerrainHeight]], [[diag_getTerrainGrid]]
}}

Revision as of 07:00, 17 June 2021