{"name":"BIS_fnc_isInsideArea","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Detects whether a position is within a square area of given size about center.","syntaxes":[{"syntax":"[center, size, position] call BIS_fnc_isInsideArea","since":null,"effect":null,"exec":null,"params":[{"name":"center","type":"Array","optional":false,"default":null,"description":"center Position of area to check","types":["Array"],"since":null,"text":"center: Array - center Position of area to check"},{"name":"size","type":"Array","optional":false,"default":null,"description":"[x,y] offsets from center","types":["Array"],"since":null,"text":"size: Array - [x,y] offsets from center"},{"name":"position","type":"Array","optional":false,"default":null,"description":"Position to check","types":["Array"],"since":null,"text":"position: Array - Position to check"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when position is in area, false otherwise","text":"Boolean - true when position is in area, false otherwise"}}],"examples":[{"text":"```sqf\n// 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;\n```","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;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createTrigger","createMarker","setTriggerArea","setMarkerSize","triggerArea","markerSize","BIS_fnc_inAngleSector"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Geometry","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}