Jump to content

Getting container contents at end of mission.

Recommended Posts

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.

Edited by Harvath.S

Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now