{"name":"BIS_fnc_interpolate","title":"BIS fnc interpolate","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_interpolate","revid":349224,"updated":"2023-11-08T14:50:50Z","groups":["Interpolation"],"status":"ok","games":{"arma3":"1.78"},"since":"arma3 1.78","arma3_since":"1.78","description":"Interpolates scalar to target, starts fast, eases out","syntaxes":[{"syntax":"[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolate","params":[{"name":"currentValue","type":"Number","description":"the current value","type_expr":"Number"},{"name":"targetValue","type":"Number","description":"the target value","type_expr":"Number"},{"name":"delta","type":"Number","optional":true,"default":"0","description":"the delta time","type_expr":"Number","text":"delta: Number - (Optional, default 0) the delta time"},{"name":"interpSpeed","type":"Number","optional":true,"default":"0","description":"the interpolation speed","type_expr":"Number","text":"interpSpeed: Number - (Optional, default 0) the interpolation speed"}],"returns":{"type":"Number","type_expr":"Number","description":"the interpolated value"}}],"examples":[{"code":["private _value = [4,8,0.2,0.1] call BIS_fnc_interpolate;"]}],"see_also":["BIS_fnc_interpolateConstant","BIS_fnc_interpolateVector","BIS_fnc_interpolateVectorConstant"]}