diag_setTerrainHeight
- Deprecated
- diag branch
- Arma 3 v2.06
Command · Markdown · JSON · original wiki page
Warning
This command is deprecated. Use setTerrainHeight instead.
Description
Changes the terrain height of the cell in which given position lies. This command is only available with Arma 3: Diagnostics Exe.
Warning
This causes an instant CTD when position is out of the map! (
< 0and/or> worldSize)
Caution
This information is obsolete. This command is subject to be removed and replaced with: setTerrainHeight
Syntax
position diag_setTerrainHeight height
Parameters:
Returns: 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;