Arma 3 Scripting

posWorldToScreen

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · also in Positions · Markdown · JSON · 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