From Bohemia Interactive Community
|
|
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