Arma 3 Scripting

Command in GUI Control - Map, Positions

posWorldToScreen

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 ctrlMapWorldToScreen.

Syntax

map posWorldToScreen position

Parameters:

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

Examples

Example 1

_screenCoord = _control posWorldToScreen _worldCoord;

Example 2

_screenCoord = _control posWorldToScreen position player;

See also

posScreenToWorld · ctrlMapWorldToScreen