mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
setAllGear - abort function and print warning when used on remote units,
This commit is contained in:
parent
027de27e33
commit
d89c93de22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user