diag dumpTerrainSynth: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Some wiki formatting)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|game1= arma3dev
|game1= arma3
|version1= 2.04


|version1= 2.03
|descr= Returns [[Arma 3: CfgWorlds Config Reference#class OutsideTerrain|OutsideTerrain]]'s current world's values.


|descr= Returns '''outsideTerrain'''<nowiki/>'s CfgWorlds current world values.
|gr1= Diagnostic
<syntaxhighlight lang="cpp">
class CfgWorlds
{
// ...
class OutsideTerrain
{
angleAltitudes[] = { { min1, max1 }, { min2, max2 }, ..., { min512, max512 } };
analysisLength = 123;
};
// ...
};
</syntaxhighlight>
 
|gr1= Diagnosis


|s1= [[diag_dumpTerrainSynth]]
|s1= [[diag_dumpTerrainSynth]]


|r1= [[Array]] of [[Number]], [[Array]] of [[Number]]s: [analysisAngle, [min1, max1], [min2, max2], ..., [min512, max512]]. There are 512 min/max pairs.
|r1= [[Array]] of [[Number]], [[Array]] of [[Number]]s: [analysisLength, [min1, max1], [min2, max2], ..., [min512, max512]]. There are 512 min/max pairs.
* analysisAngle: [[Number]] <!-- - starting from the east, going counter clockwise -->
* analysisLength: [[Number]] - altitude analysis distance from terrain's border towards its centre
* min1..512: [[Number]] - minimum altitude
* min1..512: [[Number]] - minimum altitude
* max1..512: [[Number]] - maximum altitude
* max1..512: [[Number]] - maximum altitude


|x1= <code>[[private]] _terrainSynth = [[diag_dumpTerrainSynth]];</code>
|x1= <sqf>private _terrainSynth = diag_dumpTerrainSynth;</sqf>


|seealso= [[diag_exportConfig]] [[diag_exportTerrainSVG]]
|seealso= [[diag_exportConfig]] [[diag_exportTerrainSVG]]
}}
}}

Latest revision as of 18:20, 5 May 2022

Hover & click on the images for description

Description

Description:
Returns OutsideTerrain's current world's values.
Groups:
Diagnostic

Syntax

Syntax:
diag_dumpTerrainSynth
Return Value:
Array of Number, Array of Numbers: [analysisLength, [min1, max1], [min2, max2], ..., [min512, max512]]. There are 512 min/max pairs.
  • analysisLength: Number - altitude analysis distance from terrain's border towards its centre
  • min1..512: Number - minimum altitude
  • max1..512: Number - maximum altitude

Examples

Example 1:
private _terrainSynth = diag_dumpTerrainSynth;

Additional Information

See also:
diag_exportConfig diag_exportTerrainSVG

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