ACE3/addons/common/functions/fnc_interpolateFromArray.sqf
2015-05-14 20:06:06 +02:00

12 lines
205 B
Plaintext

// by commy2
#include "script_component.hpp"
private ["_min", "_max"];
PARAMS_2(_array,_value);
_min = _array select floor _value;
_max = _array select ceil _value;
_min + (_max - _min) * (_value % 1)