Arma 3 Scripting

Command in GUI Control - Map

ctrlMapWorldToScreen

Also available as Markdown and JSON, or read the original wiki page.

Description

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

Syntax

control ctrlMapWorldToScreen position

Parameters:

Returns: Position2D - screen coordinates in format [x, y]

Examples

Example 1

_screenCoord = _control ctrlMapWorldToScreen _worldCoord;

Example 2

_screenCoord = _control ctrlMapWorldToScreen position player;

See also

ctrlMapScreenToWorld · posWorldToScreen