{"name":"BIS_fnc_isInsideArea","title":"BIS fnc isInsideArea","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_isInsideArea","revid":349465,"updated":"2023-11-08T16:49:17Z","groups":["Geometry"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Detects whether a position is within a square area of given size about center.","syntaxes":[{"syntax":"[center, size, position] call BIS_fnc_isInsideArea","params":[{"name":"center","type":"Array","description":"center Position of area to check","type_expr":"Array"},{"name":"size","type":"Array","description":"[x,y] offsets from center","type_expr":"Array"},{"name":"position","type":"Array","description":"Position to check","type_expr":"Array"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when position is in area, false otherwise"}}],"examples":[{"code":["// Check an area, centered on the player that is 10m wide and 10m tall\n_size = [5, 5];\n_checkPos = getPos player;\n_inArea = [_checkPos, _size, _checkPos] call BIS_fnc_isInsideArea;"]}],"see_also":["createTrigger","createMarker","setTriggerArea","setMarkerSize","triggerArea","markerSize","BIS_fnc_inAngleSector"]}