---
name: "BIS_fnc_camFollow"
type: function
status: ok
groups: ["Camera"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_camFollow
revid: 326944
updated: 2022-07-12T21:44:40Z
---

# BIS_fnc_camFollow

*Function · Camera · Arma 3 v0.50 · introduced in Take On Helicopters v1.00*

## Description

Refresh a camera Field of View according to its distance with the target.

## Syntax

```sqf
[camera, target, refreshTime] call BIS_fnc_camFollow
```

**Parameters:**

- `camera`: [Object](../topics/Object.md)
- `target`: [Object](../topics/Object.md) or [Position](../topics/Position.md)
- `refreshTime`: [Number](../topics/Number.md) - (Optional, default 1) transition time in seconds.
  If *refreshTime* is **positive**, a refresh happens only once.
  if *refreshTime* is **negative**, the refresh will loop (with a transition time of [absolute](../commands/abs.md) *refreshTime*) until camera [is null](../commands/isNull.md)

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

## Examples

### Example 1

```sqf
private _camera = "camera" camCreate ((getPos player) vectorAdd [0,0,3]);
[_camera, player, -2] call BIS_fnc_camFollow;
```

<sub>Source: [BI Community Wiki — BIS fnc camFollow](https://community.bistudio.com/wiki/BIS_fnc_camFollow) (revision 326944).</sub>
