Description
Returns position of a given indexed position in a building.
Syntax
building buildingPos index
Parameters:
-
building: Object -
index: Number - index of a specific positionNote
Arma 3: Since v1.56 index
-1will return all available building positions.
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