{"name":"BIS_fnc_interpolateConstant","operator":null,"title":"BIS fnc interpolateConstant","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_interpolateConstant","revid":349192,"updated":"2023-11-08T14:50:40Z","groups":["Interpolation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.78"}],"since":{"game":"arma3","name":"Arma 3","version":"1.78"},"arma3_since":"1.78","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Interpolates scalar to target linearly.","syntaxes":[{"syntax":"[currentValue, targetValue, delta, interpSpeed] call BIS_fnc_interpolateConstant","since":null,"effect":null,"exec":null,"params":[{"name":"currentValue","type":"Number","optional":false,"default":null,"description":"the current value","types":["Number"],"since":null,"text":"currentValue: Number - the current value"},{"name":"targetValue","type":"Number","optional":false,"default":null,"description":"the target value","types":["Number"],"since":null,"text":"targetValue: Number - the target value"},{"name":"delta","type":"Number","optional":true,"default":"0","description":"the delta time","types":["Number"],"since":null,"text":"delta: Number - (Optional, default 0) the delta time"},{"name":"interpSpeed","type":"Number","optional":true,"default":"0","description":"the interpolation speed","types":["Number"],"since":null,"text":"interpSpeed: Number - (Optional, default 0) the interpolation speed"}],"returns":{"type":"Number","types":["Number"],"description":"the interpolated value","text":"Number - the interpolated value"}}],"examples":[{"text":"```sqf\nprivate _value = [4,8,0.2,0.1] call BIS_fnc_interpolateConstant;\n```","code":["private _value = [4,8,0.2,0.1] call BIS_fnc_interpolateConstant;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_interpolate","BIS_fnc_interpolateVector","BIS_fnc_interpolateVectorConstant"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Interpolation","Functions","Introduced with Arma 3 version 1.78"],"docblock":null,"filled_from_docblock":[]}