Arma 3 Scripting

Function in Interpolation

BIS_fnc_lerp

Also available as Markdown and JSON, or read the original wiki page.

Description

Linear floating point interpolation (see Linear Interpolation).

Syntax

[currentValue, targetValue, alpha] call BIS_fnc_lerp

Parameters:

Returns: Number - interpolated value

Examples

Example 1

[1, 10, 0.5] call BIS_fnc_lerp; // returns 5.5