worldToScreen

From Bohemia Interactive Community
Revision as of 05:27, 16 June 2009 by Kronzky (talk | contribs) (add. classification)
Jump to navigation Jump to search
Hover & click on the images for description

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

Notes

Bottom Section