ctrlMapScreenToWorld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (new command needs populating.)
 
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| added 1.05 Needs populating |= Description
| Convert screen coordinates in map to world coordinates. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''ctrlMapScreenToWorld''' |= Syntax
| '''map ctrlMapScreenToWorld [x,y]''' |= Syntax


|p1= |= Parameter 1
|p1= map: [[Control]] |= Parameter 1


| |= Return value
|p2= [x, y]: [[Array]] |= Parameter 2
 
|Array|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= |= Example 1
|x1= <pre>_WorldCoord = _Control ctrlMapScreenToWorld _ScreenCoord</pre> |= Example 1
|x2= <pre>_WorldCoord = _Control ctrlMapScreenToWorld [_x,_y]</pre> |= Example 2
 
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[ctrlMapWorldToScreen]], [[posScreenToWorld]], [[posWorldToScreen]] |= See also


}}
}}

Revision as of 23:23, 6 April 2007

-wrong parameter ("Arma") defined!-1.05
Hover & click on the images for description

Description

Description:
Convert screen coordinates in map to world coordinates.
Groups:
Uncategorised

Syntax

Syntax:
map ctrlMapScreenToWorld [x,y]
Parameters:
map: Control
[x, y]: Array
Return Value:
Array

Examples

Example 1:
_WorldCoord = _Control ctrlMapScreenToWorld _ScreenCoord
Example 2:
_WorldCoord = _Control ctrlMapScreenToWorld [_x,_y]

Additional Information

See also:
ctrlMapWorldToScreenposScreenToWorldposWorldToScreen

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