mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
This commit is contained in:
@ -34,14 +34,18 @@ if (_activated && local _logic) then {
|
||||
};
|
||||
|
||||
if (_error == "") then {
|
||||
|
||||
if (["ACE_Arsenal"] call EFUNC(common,isModLoaded)) then {
|
||||
if (!isPlayer _unit || {player == _unit}) then {
|
||||
|
||||
[{
|
||||
params ["_unit"];
|
||||
[{
|
||||
params ["_unit"];
|
||||
|
||||
[_unit, _unit, true] call EFUNC(arsenal,openBox);
|
||||
}, [_unit]] call CBA_fnc_directCall;
|
||||
[_unit, _unit, true] call EFUNC(arsenal,openBox);
|
||||
}, [_unit]] call CBA_fnc_directCall;
|
||||
} else {
|
||||
|
||||
[objNull, localize "str_a3_BIS_fnc_moduleArsenal_errorDead"] call bis_fnc_showCuratorFeedbackMessage;
|
||||
};
|
||||
} else {
|
||||
if !(isPlayer _unit) then {
|
||||
|
||||
|
Reference in New Issue
Block a user