Search the Community
Showing results for tags 'getitemcargo'.
Found 2 results
-
Getting container contents at end of mission.
Harvath.S posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've been searching the interwebs for the last couple of days and keep hitting a brick wall on this. I am attempting to get the contents of an ammo crate at the end of a mission so I can carry that over to the next and force the players to pay attention to the amount of rounds they are using and give them incentive to not waste ammo. I've tried getItemCargo and itemCargo and I keep getting an empty array. I am not trying to make it automatically save the contents because I really do not want to deal with a database for a single ammocrate. I have tried the following snippets in the debug console to test and continually get empty arrays. hint str itemCargo case1; hint str getItemCargo case1; hint str itemCargo _case1; hint str getItemCargo _case1; Does anyone have any ideas on what I am missing here? Again, I am just trying to be able to pull the contents of the crate so I can move them over to the next mission. Thanks in advance! EDIT: Dumb dumb me didn't think to use getMagazineCargo. All is now right in the world. -
getItemCargo doesn't return every object type
smirlianos posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have a container that contains an optic, a banana (from ACE), a chemlight and a grenade. It has the following line inside init. hint str getItemcargo box1; I want it to return every object that's inside but it only returns these 2: Why is this happening?- 2 replies
-
- getitemcargo
- editor
-
(and 1 more)
Tagged with: