BIS fnc gridToPos: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 14: | Line 14: | ||
| gridPosition call [[BIS_fnc_gridToPos]] |SYNTAX= | | gridPosition call [[BIS_fnc_gridToPos]] |SYNTAX= | ||
|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 |PARAMETER1= | ||
| [[Array]] - to format <nowiki>[</nowiki>[gridX, gridY], [gridWidth, gridHeight]] (all of [[Number]] type) |RETURNVALUE= | | [[Array]] - to format <nowiki>[</nowiki>[gridX, gridY], [gridWidth, gridHeight]] (all of [[Number]] type) |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_realPosition = "183221" [[call]] [[BIS_fnc_gridToPos]];</code> |= | |x1= <code>_realPosition = "183221" [[call]] [[BIS_fnc_gridToPos]];</code> |EXAMPLE1= | ||
|x2= <code>_realPosition = "He11" [[call]] [[BIS_fnc_gridToPos]];</code> |= | |x2= <code>_realPosition = "He11" [[call]] [[BIS_fnc_gridToPos]];</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:30, 7 April 2019
Description
- Description:
- Converts grid coordinates to world position.
- Execution:
- call
- Groups:
- Uncategorised
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