BIS fnc exportMapToBiTXT: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Diagnostic | |gr1 = Diagnostic | ||
| Returns terrain height map to BiTXT (Universal Bistudio TXT) format, which can be imported to [[Object Builder]]. Output is also [[copyToClipboard|copied to clipboard]]. | | Returns terrain height map to BiTXT (Universal Bistudio TXT) format, which can be imported to [[Object Builder]]. Output is also [[copyToClipboard|copied to clipboard]]. | ||
{{Important| | {{Important| | ||
Be wary that '''this function is CPU-demanding''' and may lock your computer for minutes!}} | Be wary that '''this function is CPU-demanding''' and may lock your computer for minutes!}} | ||
| [resolution, size, zCoeff] call [[BIS_fnc_exportMapToBiTXT]] | | [resolution, size, zCoeff] call [[BIS_fnc_exportMapToBiTXT]] | ||
|p1= resolution: [[Number]] - (Optional, default 64) object resolution, i.e, number of points per side | |p1= resolution: [[Number]] - (Optional, default 64) object resolution, i.e, number of points per side | ||
|p2= size: [[Number]] - (Optional, default 10) object size in metres | |p2= size: [[Number]] - (Optional, default 10) object size in metres | ||
|p3= zCoeff: [[Number]] - (Optional, default 2) vertical coefficient. All Z coordinates will be multiplied by this number to highlight hills and mountains | |p3= zCoeff: [[Number]] - (Optional, default 2) vertical coefficient. All Z coordinates will be multiplied by this number to highlight hills and mountains | ||
| [[String]] - height map, same data as in the clipboard | | [[String]] - height map, same data as in the clipboard | ||
|x1= <code>[10, 10, 1] [[call]] [[BIS_fnc_exportMapToBiTXT]];</code> | |x1= <code>[10, 10, 1] [[call]] [[BIS_fnc_exportMapToBiTXT]];</code> | ||
|x2= <code>[[call]] [[BIS_fnc_exportMapToBiTXT]];</code> | |x2= <code>[[call]] [[BIS_fnc_exportMapToBiTXT]];</code> | ||
| | | | ||
}} | }} | ||
Revision as of 23:03, 17 January 2021
Description
- Description:
- Returns terrain height map to BiTXT (Universal Bistudio TXT) format, which can be imported to Object Builder. Output is also copied to clipboard.
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- [resolution, size, zCoeff] call BIS_fnc_exportMapToBiTXT
- Parameters:
- resolution: Number - (Optional, default 64) object resolution, i.e, number of points per side
- size: Number - (Optional, default 10) object size in metres
- zCoeff: Number - (Optional, default 2) vertical coefficient. All Z coordinates will be multiplied by this number to highlight hills and mountains
- Return Value:
- String - height map, same data as in the clipboard
Examples
- Example 1:
[10, 10, 1] call BIS_fnc_exportMapToBiTXT;
- Example 2:
call BIS_fnc_exportMapToBiTXT;
Additional Information
- See also:
- See also needed
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