BIS fnc gridToPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
(Does not work on machines with no UI)
Line 8: Line 8:
|descr= Converts grid coordinates to world position.
|descr= Converts grid coordinates to world position.
{{Feature|important|
{{Feature|important|
Correct results outside of the map area are not guaranteed.}}
Correct results outside of the map area are not guaranteed.
----
Does not work on machines with no UI like [[Arma_3:_Headless_Client|Headless Client]] or [[Arma_3:_Dedicated_Server|Dedicated Server]].}}


|s1= gridPosition call [[BIS_fnc_gridToPos]]
|s1= gridPosition call [[BIS_fnc_gridToPos]]

Revision as of 13:55, 30 July 2022

Hover & click on the images for description

Description

Description:
Converts grid coordinates to world position.
Correct results outside of the map area are not guaranteed.
Does not work on machines with no UI like Headless Client or Dedicated Server.
Execution:
call
Groups:
Positions

Syntax

Syntax:
gridPosition call BIS_fnc_gridToPos
Parameters:
gridPosition: String - (Optional, default mapGridPosition position cameraOn) accepts both "024577" or "De82" format
Return Value:
Array of Numbers in format [[gridX, gridY], [gridWidth, gridHeight]]

Examples

Example 1:
private _realPosition = "183221" call BIS_fnc_gridToPos;
Example 2:
private _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