worldToScreen: Difference between revisions
Jump to navigation
Jump to search
(add. classification) |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 41: | Line 41: | ||
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:44, 2 November 2011
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