diag setTerrainHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (branch)
m (de-rain :) Added See also too)
Line 31: Line 31:
};
};


<nowiki>[</nowiki>[[position]] [[player]], 50, 50, 150] [[spawn]] _fnc_flattenTer[[rain]];</code>
<nowiki>[</nowiki>[[position]] [[player]], 50, 50, 150] [[spawn]] _fnc_flattenTerrain;</code>


|seealso=
|seealso= [[diag_getTerrainHeight]]
}}
}}

Revision as of 12:30, 24 May 2021

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

Description

Description:
Changes the terrain height of the cell in which given position lies. This command is only available with Arma 3: Diagnostics Exe.
See Example 1 for the code
Groups:
Diagnostic

Syntax

Syntax:
position diag_setTerrainHeight height
Parameters:
position: Array - In format Position
height: Number
Return Value:
Return value needed

Examples

Example 1:
private _fnc_flattenTerrain = { params ["_start", "_a", "_b", "_h"]; for "_xStep" from 0 to _a do { for "_yStep" from 0 to _b do { _start vectorAdd [_xStep, _yStep, 0] diag_setTerrainHeight _h; }; }; }; [position player, 50, 50, 150] spawn _fnc_flattenTerrain;

Additional Information

See also:
diag_getTerrainHeight

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