Skip to content

Commit

Permalink
Remove workaround for broken CBA function
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Jul 20, 2024
1 parent 5d133bd commit b675015
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/dogtags/functions/fnc_canTakeDogtag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ if (isNull _target) exitWith {false};
// Check if disabled for faction
if ((faction _target) in GVAR(disabledFactions)) exitWith {false};

// CBA_fnc_canAddItem doesn't account for mass 0 items and unit not having any containers
!(_target call EFUNC(common,isAwake)) && {(uniform _player + vest _player + backpack _player) != ""} && {[_player, "ACE_dogtag_1"] call CBA_fnc_canAddItem}
!(_target call EFUNC(common,isAwake)) && {[_player, "ACE_dogtag_1"] call CBA_fnc_canAddItem}
// Todo: Use code below in 2.18
// _player canAdd ["ACE_dogtag_1", 1, true]

0 comments on commit b675015

Please sign in to comment.