1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00
ACE3/addons/core/functions/fn_interpolateFromArray.sqf

12 lines
218 B
Plaintext

// by commy2
private ["_array", "_value", "_min", "_max"];
_array = _this select 0;
_value = _this select 1;
_min = _array select floor _value;
_max = _array select ceil _value;
_min + (_max - _min) * (_value % 1)