Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Converts a map control world position to screen coordinates.

Syntax

Syntax:ctrlMapWorldToScreen control
Parameters:
  • control: Control - The map control.
Return Value:Array (Position2D Format)

Examples

Examples:
_screenCoord = _control ctrlMapWorldToScreen _worldCoord;
_screenCoord = _control ctrlMapWorldToScreen (position player);

Additional Information

See also: ctrlMapScreenToWorld
Multiplayer: 
Problems: 

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.