ctrlMapWorldToScreen

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.05
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.05

Description

Description:
Converts world coordinates into map screen coordinates. This command is identical to posWorldToScreen.

Syntax

Syntax:
control posWorldToScreen position
Parameters:
control : Control - map control
position : Array - world position in format Position2D or Position3D
Return Value:
Array - screen coordinates in format [x, y]

Examples

Example 1:
_screenCoord = _control ctrlMapWorldToScreen _worldCoord;
Example 2:
_screenCoord = _control ctrlMapWorldToScreen position player;

Additional Information

Multiplayer:
-
See also:
ctrlMapScreenToWorldposWorldToScreen

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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