Arma 3 Scripting

BIS_fnc_interpolateConstant

  • Arma 3 v1.78

Function · Markdown · JSON · 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