ALiVEOS / ALiVE.OS

ALiVE Open Source GPL v2
http://alivemod.com/
Other
157 stars 82 forks source link

IFA: radios do not persist with some backpacks #701

Closed bradon closed 4 years ago

bradon commented 4 years ago

IFA adds ItemRadio to some backpacks that have no inventory space. (If acre is loaded, this converts to an acre radio).

On loading player data (and probably cargo in boxes), adding the item fails due to the lack of space.

As a workaround, users can place the radio somewhere that has an inventory (eg. uniform).

addItemCargoGlobal does not check for space and is probably the function to use

Files that may be relevant: sys_player/playerData.hpp sys_logistics/fnc_setObjectCargo.sqf