---
name: "BIS_fnc_interpolateVector"
type: function
status: ok
groups: ["Interpolation", "Vectors"]
arma3_since: "1.78"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_interpolateVector
revid: 349263
updated: 2023-11-08T14:51:08Z
---

# BIS_fnc_interpolateVector

*Function · Interpolation, Vectors · Arma 3 v1.78*

## Description

Interpolates vector to target, scaled by distance.
Starts very fast and smoothes out.

## Syntax

```sqf
[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolateVector
```

**Parameters:**

- `currentValue`: [Array](../topics/Array.md) - the current value
- `targetValue`: [Array](../topics/Array.md) - the target value
- `delta`: [Number](../topics/Number.md) - (Optional, default 0) the delta time
- `interpSpeed`: [Number](../topics/Number.md) - (Optional, default 0) the interpolation speed

**Returns:** [Array](../topics/Array.md) - the interpolated value

## Examples

### Example 1

```sqf
[[1,1,1], [20,20,20], 0.2, 0.1] call BIS_fnc_interpolateVector;
```

## See also

[BIS_fnc_interpolateConstant](../functions/BIS_fnc_interpolateConstant.md) · [BIS_fnc_interpolate](../functions/BIS_fnc_interpolate.md) · [BIS_fnc_interpolateVectorConstant](../functions/BIS_fnc_interpolateVectorConstant.md)

<sub>Source: [BI Community Wiki — BIS fnc interpolateVector](https://community.bistudio.com/wiki/BIS_fnc_interpolateVector) (revision 349263).</sub>
