optional param to skip deprecated warning

This commit is contained in:
commy2 2016-05-16 15:15:51 +02:00
parent 32055401d3
commit cac7b9c0c3

View File

@ -33,9 +33,11 @@
*/
#include "script_component.hpp"
ACE_DEPRECATED("ace_common_fnc_getAllGear","3.7.0","getUnitLoadout");
params ["_unit", ["_showDeprecated", true]];
params ["_unit"];
if (_showDeprecated) then {
ACE_DEPRECATED("ace_common_fnc_getAllGear","3.7.0","getUnitLoadout");
};
if (isNull _unit) exitWith {[
"",