setAllGear - abort function and print warning when used on remote units,

This commit is contained in:
commy2 2016-02-05 21:14:20 +01:00
parent 027de27e33
commit d89c93de22

View File

@ -20,6 +20,10 @@
params ["_unit", "_allGear", ["_clearAttachments", false], ["_clearBackpack", false]];
if (!local _unit) exitWith {
ACE_LOGWARNING_1("setAllGear - %1 has to be local.",_unit);
};
// remove all starting gear of a player
removeAllWeapons _unit;
removeGoggles _unit;