ctrlMapWorldToScreen: Difference between revisions
Jump to navigation
Jump to search
(Fixed example) |
(Added comment to explain the comment better.) |
||
Line 30: | Line 30: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on June 16, 2010</dd> | |||
<dt class="note">'''[[User:kju|kju]]'''</dt><dd class="note">''Notes:'' | |||
The return will return a 2d array with the position on the active map display, say [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.<br> | |||
In other words you can make the actual world position (of an object for example), relative to your active map display. | |||
</dd> | |||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 14:25, 16 June 2010
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:
- See also needed
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:
The return will return a 2d array with the position on the active map display, say [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.