Gets a value from parameters list (usually _this) with a default.
private "_frog"; _frog = [_this, 2, 12] call CBA_fnc_defaultParam;
#include "script_component.hpp" DEFAULT_PARAM(2,_frog,12);
_params | Array of parameters, usually _this [Array] |
_index | Parameter index in the params array [Integer: >= 0] |
_defaultValue | Value to use if the array is too short [Any] |
Value of parameter [Any]