BIS fnc gridToPos: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Positions |GROUP1= | |gr1 = Positions |GROUP1= | ||
| Converts grid coordinates to world position. | | Converts grid coordinates to world position. | ||
{{Important| | {{Important| | ||
Correct results outside of the map area are not guaranteed.}} |DESCRIPTION= | Correct results outside of the map area are not guaranteed.}} |DESCRIPTION= | ||
| gridPosition call [[BIS_fnc_gridToPos]] |SYNTAX= | | gridPosition call [[BIS_fnc_gridToPos]] |SYNTAX= | ||
Line 19: | Line 16: | ||
| [[Array]] - to format [<nowiki/>[gridX, gridY], [gridWidth, gridHeight]] (all of [[Number]] type) |RETURNVALUE= | | [[Array]] - to format [<nowiki/>[gridX, gridY], [gridWidth, gridHeight]] (all of [[Number]] type) |RETURNVALUE= | ||
|x1= <code>_realPosition = "183221" [[call]] [[BIS_fnc_gridToPos]];</code> |EXAMPLE1= | |x1= <code>_realPosition = "183221" [[call]] [[BIS_fnc_gridToPos]];</code> |EXAMPLE1= | ||
|x2= <code>_realPosition = "He11" [[call]] [[BIS_fnc_gridToPos]];</code> |EXAMPLE2= | |x2= <code>_realPosition = "He11" [[call]] [[BIS_fnc_gridToPos]];</code> |EXAMPLE2= | ||
| [[mapGridPosition]] |SEEALSO= | | [[mapGridPosition]] |SEEALSO= |
Revision as of 23:10, 16 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