ACE3/addons/common/functions/fnc_interpolateFromArray.sqf

12 lines
205 B
Plaintext
Raw Normal View History

// by commy2
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
private ["_min", "_max"];
2015-05-14 18:06:06 +00:00
PARAMS_2(_array,_value);
_min = _array select floor _value;
_max = _array select ceil _value;
_min + (_max - _min) * (_value % 1)