Arma 3 Scripting

Command in Positions

worldToModel

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

Description

Converts position from world space to object model space.

Important

For scaled objects, the relative position will be divided by the object scale.

Syntax

model worldToModel position

Parameters:

Returns: PositionRelative - position relative to model

Examples

Example 1

_relPos = myObject worldToModel [0,0,0];

Example 2

_relPos = player worldToModel ASLToAGL getPosASL car;

Example 3

_relPos = car worldToModel [12000,5000];

See also

worldToModelVisual · vectorWorldToModel · modelToWorld