Arma 3 Scripting

BIS_fnc_isInsideArea

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Detects whether a position is within a square area of given size about center.

Syntax

[center, size, position] call BIS_fnc_isInsideArea

Parameters:

Returns: Boolean - true when position is in area, false otherwise

Examples

Example 1

// Check an area, centered on the player that is 10m wide and 10m tall
_size = [5, 5];
_checkPos = getPos player;
_inArea = [_checkPos, _size, _checkPos] call BIS_fnc_isInsideArea;

See also

createTrigger · createMarker · setTriggerArea · setMarkerSize · triggerArea · markerSize · BIS_fnc_inAngleSector