You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arma 3 Version:1.92 (stable) CBA Version:3.11.2 (stable)
Mods:
- CBA_A3
Description:
CBA_fnc_uniqueUnitItems does not return any magazines not currently attached to a weapon in use by the unit. It seems that getItemCargo doesn't return them while magazines does.
Steps to reproduce:
Place down ammo carrier, drop weapons and observe result of CBA_fnc_uniqueUnitItems
I pinged dedmen, because from looking at the code, it seems that uniqueUnitItems is not supposed to return any magazine, and the command returning loaded magazines at all (if _weaponItems flag is set to true) is just a byproduct of optimization: this function also reports the empty string as item (no attachment at atleast one hardpoint), even though it is not an item, because the function is used for writing optimized code. (Substitude for a missing command like _unit hasItem "class").
it seems that uniqueUnitItems is not supposed to return any magazine
True, it was not written for that. It was written as a fast way to check if the player has "items" in their inventory, magazines are not items.
But I see that from a API standpoint it makes much more sense to include that.
Arma 3 Version:
1.92
(stable)CBA Version:
3.11.2
(stable)Mods:
Description:
CBA_fnc_uniqueUnitItems
does not return any magazines not currently attached to a weapon in use by the unit. It seems thatgetItemCargo
doesn't return them whilemagazines
does.Steps to reproduce:
CBA_fnc_uniqueUnitItems
Where did the issue occur?
RPT log file:
The text was updated successfully, but these errors were encountered: