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

# BIS_fnc_lerpVector

*Function · Vectors · Arma 3 v1.78*

## Description

Given two different vectors A and B, think of a straight line drawn between them, *alpha* saying how far along that line is the wanted vector.

## Syntax

```sqf
[currentValue, targetValue, alpha] call BIS_fnc_lerpVector
```

**Parameters:**

- `currentValue`: [Array](../topics/Array.md) - vector start
- `targetValue`: [Array](../topics/Array.md) - vector end
- `alpha`: [Number](../topics/Number.md) - alpha

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

## Examples

### Example 1

```sqf
[[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]
```

## See also

[BIS_fnc_clerp](../functions/BIS_fnc_clerp.md) · [BIS_fnc_slerp](../functions/BIS_fnc_slerp.md) · [BIS_fnc_lerp](../functions/BIS_fnc_lerp.md) · [BIS_fnc_inverseLerp](../functions/BIS_fnc_inverseLerp.md)

<sub>Source: [BI Community Wiki — BIS fnc lerpVector](https://community.bistudio.com/wiki/BIS_fnc_lerpVector) (revision 348754).</sub>
