ctrlMapWorldToScreen: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (Added ctrlMapScreenToWorld to see also) |
||
Line 22: | Line 22: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[ctrlMapScreenToWorld]] |= See also | ||
}} | }} |
Revision as of 22:30, 22 August 2013
Description
- Description:
- Transfers a map control world position to screen coordinates.
- Groups:
- Uncategorised
Syntax
- Syntax:
- ctrlMapWorldToScreen controlName
- Parameters:
- controlName: Control
- Return Value:
- Array (Position2D Format)
Examples
- Example 1:
_screenCoord = _control ctrlMapWorldToScreen _worldCoord;
- Example 2:
_screenCoord = _control ctrlMapWorldToScreen (position player);
Additional Information
- See also:
- ctrlMapScreenToWorld
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
- Posted on June 16, 2010
- kju
- Notes:
It returns a 2d array with the position on the active map display. Say the return [0.5.0.5] would mean that your input 3d world position, like [500,1000], is currently at the center of the active map display.
In other words you can make the actual world position (of an object for example), relative to your active map display.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma version 1.05
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA
- Command Group: GUI Control
- Command Group: Object Information
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters