Arma 3 Scripting

Command in Positions

buildingPos

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

Description

Returns position of a given indexed position in a building.

Syntax

building buildingPos index

Parameters:

Returns: PositionAGL - a single building position. If building position with given index does not exist, [0, 0, 0] is returned

Note

Arma 3: Since v1.56 it can also return an array of all building positions in format PositionAGL if index that was given is -1.

Examples

Example 1

_soldier setPosATL (_house1 buildingPos 2);

Example 2

_allpositions = nearestBuilding player buildingPos -1;

See also

nearestBuilding · nearestObject · nearestObjects · nearObjects · insideBuilding · buildingExit · position · setPos · setWaypointHousePosition · waypointHousePosition · BIS_fnc_buildingPositions