BIS fnc gridToPos: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "| arma3 |1.00 " to "|game1= arma3 |version1= 1.00 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(4 intermediate revisions by 2 users not shown) | |||
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: Dedicated Server|Dedicated Server]] or [[Arma 3: Headless Client|Headless Client]] - see [[hasInterface]]. | |||
}} | |||
|s1= gridPosition call [[BIS_fnc_gridToPos]] | |s1= gridPosition call [[BIS_fnc_gridToPos]] | ||
|p1= gridPosition: [[String]] - (Optional, default | |p1= gridPosition: [[String]] - (Optional, default <sqf inline>mapGridPosition position cameraOn</sqf>) accepts both "024577" or "De82" format | ||
|r1=[[Array]] | |r1= [[Array]] of [[Number]]s in format [<nowiki/>[gridX, gridY], [gridWidth, gridHeight]] | ||
|x1= < | |x1= <sqf>private _realPosition = "183221" call BIS_fnc_gridToPos;</sqf> | ||
|x2= < | |x2= <sqf>private _realPosition = "He11" call BIS_fnc_gridToPos;</sqf> | ||
|seealso= [[mapGridPosition]] | |seealso= [[mapGridPosition]] | ||
}} | }} |
Latest revision as of 13:57, 30 July 2022
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 of Numbers in format [[gridX, gridY], [gridWidth, gridHeight]]
Examples
- Example 1:
- Example 2:
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