---
name: "BIS_fnc_isInFrontOf"
type: function
status: ok
groups: ["Object Manipulation", "Geometry"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_isInFrontOf
revid: 328436
updated: 2022-07-13T16:00:51Z
---

# BIS_fnc_isInFrontOf

*Function · Object Manipulation, Geometry · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Check if an object is in front of another object (in the front 180°)

## Syntax

```sqf
[reference, checked, offset] call BIS_fnc_isInFrontOf
```

**Parameters:**

- `reference`: [Object](../topics/Object.md) - the reference object
- `checked`: [Object](../topics/Object.md) - the object that has to be in front of *reference*
- `offset`: [Number](../topics/Number.md) - (Optional, default 0) allows to check from *offset* meters in front of (positive), or behind (negative) *reference*

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
private _isInstructorInFrontOfPlayer = [player, instructor, 0] call BIS_fnc_isInFrontOf;
```

## See also

[getRelDir](../commands/getRelDir.md) · [BIS_fnc_isInsideArea](../functions/BIS_fnc_isInsideArea.md)

<sub>Source: [BI Community Wiki — BIS fnc isInFrontOf](https://community.bistudio.com/wiki/BIS_fnc_isInFrontOf) (revision 328436).</sub>
