Description
Interpolates scalar to target linearly.
Syntax
[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolateConstant
Parameters:
currentValue: Number - the current valuetargetValue: Number - the target valuedelta: Number - (Optional, default 0) the delta timeinterpSpeed: Number - (Optional, default 0) the interpolation speed
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