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