diag setTerrainHeight: Difference between revisions
BrettMayson (talk | contribs) No edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 15: | Line 15: | ||
|s1= position [[diag_setTerrainHeight]] height | |s1= position [[diag_setTerrainHeight]] height | ||
|p1= position: | |p1= position: [[Position]] | ||
|p2= height: [[Number]] | |p2= height: [[Number]] | ||
Latest revision as of 07:52, 2 January 2026
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: Position
- height: Number
- Return Value:
- Nothing
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; }; }; }; private _desiredTerrainHeight = 150; [getPosWorld player, 50, 50, _desiredTerrainHeight] spawn _fnc_flattenTerrain;
Additional Information
- See also:
- diag_getTerrainHeight
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note