Description
Detects whether a position is within a square area of given size about center.
Syntax
[center, size, position] call BIS_fnc_isInsideArea
Parameters:
center: Array - center Position of area to checksize: Array - [x,y] offsets from centerposition: Array - Position to check
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