Arma 3 Scripting

Function in Interpolation

BIS_fnc_interpolateConstant

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

Description

Interpolates scalar to target linearly.

Syntax

[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolateConstant

Parameters:

Returns: Number - the interpolated value

Examples

Example 1

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

See also

BIS_fnc_interpolate · BIS_fnc_interpolateVector · BIS_fnc_interpolateVectorConstant