---
name: "BIS_fnc_isInsideArea"
type: function
status: ok
groups: ["Geometry"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_isInsideArea
revid: 349465
updated: 2023-11-08T16:49:17Z
---

# BIS_fnc_isInsideArea

*Function · Geometry · Arma 3 v1.00*

## Description

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

## Syntax

```sqf
[center, size, position] call BIS_fnc_isInsideArea
```

**Parameters:**

- `center`: [Array](../topics/Array.md) - center [Position](../topics/Position.md) of area to check
- `size`: [Array](../topics/Array.md) - [x,y] offsets from center
- `position`: [Array](../topics/Array.md) - [Position](../topics/Position.md) to check

**Returns:** [Boolean](../topics/Boolean.md) - true when position is in area, false otherwise

## Examples

### Example 1

```sqf
// 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](../commands/createTrigger.md) · [createMarker](../commands/createMarker.md) · [setTriggerArea](../commands/setTriggerArea.md) · [setMarkerSize](../commands/setMarkerSize.md) · [triggerArea](../commands/triggerArea.md) · [markerSize](../commands/markerSize.md) · [BIS_fnc_inAngleSector](../functions/BIS_fnc_inAngleSector.md)

<sub>Source: [BI Community Wiki — BIS fnc isInsideArea](https://community.bistudio.com/wiki/BIS_fnc_isInsideArea) (revision 349465).</sub>
