BIS fnc gridToPos: 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 = Positions | |gr1 = Positions | ||
| Converts grid coordinates to world position. | | Converts grid coordinates to world position. | ||
{{Important| | {{Important| | ||
Correct results outside of the map area are not guaranteed.}} | Correct results outside of the map area are not guaranteed.}} | ||
| gridPosition call [[BIS_fnc_gridToPos]] | | gridPosition call [[BIS_fnc_gridToPos]] | ||
|p1= gridPosition: [[String]] - (Optional, default {{Inline code|[[mapGridPosition]] [[position]] [[cameraOn]]}}) accepts both "024577" or "De82" format | |p1= gridPosition: [[String]] - (Optional, default {{Inline code|[[mapGridPosition]] [[position]] [[cameraOn]]}}) accepts both "024577" or "De82" format | ||
| [[Array]] - to format [<nowiki/>[gridX, gridY], [gridWidth, gridHeight]] (all of [[Number]] type) | | [[Array]] - to format [<nowiki/>[gridX, gridY], [gridWidth, gridHeight]] (all of [[Number]] type) | ||
|x1= <code>_realPosition = "183221" [[call]] [[BIS_fnc_gridToPos]];</code> | |x1= <code>_realPosition = "183221" [[call]] [[BIS_fnc_gridToPos]];</code> | ||
|x2= <code>_realPosition = "He11" [[call]] [[BIS_fnc_gridToPos]];</code> | |x2= <code>_realPosition = "He11" [[call]] [[BIS_fnc_gridToPos]];</code> | ||
| [[mapGridPosition]] | | [[mapGridPosition]] | ||
}} | }} | ||
Revision as of 23:03, 17 January 2021
Description
Syntax
- Syntax:
- gridPosition call BIS_fnc_gridToPos
- Parameters:
- gridPosition: String - (Optional, default
mapGridPosition position cameraOn
) accepts both "024577" or "De82" format - Return Value:
- Array - to format [[gridX, gridY], [gridWidth, gridHeight]] (all of Number type)
Examples
- Example 1:
_realPosition = "183221" call BIS_fnc_gridToPos;
- Example 2:
_realPosition = "He11" call BIS_fnc_gridToPos;
Additional Information
- See also:
- mapGridPosition
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