Rook Mk1 46 Posted April 28, 2020 Is it possible to check if an item is in a container? e.g. if (hgun_P07_F in _box) then I've tried a few different things but none seem to work. Share this post Link to post Share on other sites
JokerRetry 2 Posted April 28, 2020 Not tested but should work with: if("hgun_P07_F" in (items _box)then{ //CODE }; Share this post Link to post Share on other sites
Rook Mk1 46 Posted April 28, 2020 10 minutes ago, JokerRetry said: Not tested but should work with: if("hgun_P07_F" in (items _box)then{ //CODE }; I tried if ("hgun_P07_F" in (items _box)) then {hint "true" } else {hint "false"}; always returns false. Share this post Link to post Share on other sites
JokerRetry 2 Posted April 28, 2020 okay, checking for weapons seems to be able with "weaponCargo". 1 Share this post Link to post Share on other sites
Rook Mk1 46 Posted April 28, 2020 2 minutes ago, JokerRetry said: okay, checking for weapons seems to be able with "weaponCargo". if ("hgun_P07_F" in (WeaponCargo ammobox)) then Success! Thanks! 1 Share this post Link to post Share on other sites