Merge pull request #3274 from acemod/setallgearremote

setAllGear - abort function and print warning when used on remote units,
This commit is contained in:
commy2 2016-02-05 21:58:54 +01:00
commit 43e8620039

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;