Description
Converts world coordinates into map screen coordinates. This command is identical to posWorldToScreen.
Syntax
control ctrlMapWorldToScreen position
Parameters:
control: Control - map controlposition: Position2D or Position3D - world position
Returns: Position2D - screen coordinates in format [x, y]
Examples
Example 1
_screenCoord = _control ctrlMapWorldToScreen _worldCoord;
Example 2
_screenCoord = _control ctrlMapWorldToScreen position player;