#include "script_component.hpp" /* * Author: commy2 * Interpolates between two set points in a curve. * * Arguments: * 0: List of numbers to interpolate from * 1: Value / index * * Return Value: * Interpolation result * * Example: * [[0,1], 5] call ace_common_fnc_interpolateFromArray * * Public: Yes */ params ["_array", "_value"]; private _min = _array select floor _value; private _max = _array select ceil _value; linearConversion [0, 1, _value % 1, _min, _max] // return