Arma 3 Scripting

Function in Interpolation

BIS_fnc_interpolate

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

Description

Interpolates scalar to target, starts fast, eases out

Syntax

[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolate

Parameters:

Returns: Number - the interpolated value

Examples

Example 1

private _value = [4,8,0.2,0.1] call BIS_fnc_interpolate;

See also

BIS_fnc_interpolateConstant · BIS_fnc_interpolateVector · BIS_fnc_interpolateVectorConstant