worldToScreen
Jump to navigation
Jump to search
Description
- Description:
- Converts position in world space into screen (UI) space.
If a specified position is not within the current map view, an empty array is returned. - Groups:
- Uncategorised
Syntax
- Syntax:
- worldToScreen position
- Parameters:
- position: Array - 2D or 3D position
- Return Value:
- Position2D - Screen position (upper left=[0,0], lower right=[1,1])
Examples
- Example 1:
_scPos = worldToScreen (getpos player)
Additional Information
- See also:
- screenToWorld
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