Jump to content
Sign in to follow this  
Ranwer135

Retrieving uniform, vest or backpack cargo?

Recommended Posts

Hey guys,

Is there any possible way to retrieve an array of classnames, consisting of items, magazines or weapons from the uniform, vest or backpack? I already know there are commands like magazines, items, but they only retrieve a total array of the unit's magazines/items.

Thanks,

Rawner135

Share this post


Link to post
Share on other sites

Is there any possible way to retrieve an array of classnames, consisting of items, magazines or weapons from the uniform, vest or backpack? I already know there are commands like magazines, items, but they only retrieve a total array of the unit's magazines/items.

 

Commands: uniformContainer, vestContainer, backpackContainer

private _vestItems = itemCargo (vestContainer player);
private _vestMagazines = magazinesAmmoCargo (vestContainer player);
private _vestWeapons = weaponsItemsCargo (vestContainer player);

Share this post


Link to post
Share on other sites
They only retrieve the string of the uniform, vest or backpack the unit is wearing.

Commands: uniformContainer, vestContainer, backpackContainer

private _vestItems = itemCargo (vestContainer player);private _vestMagazines = magazinesAmmoCargo (vestContainer player);private _vestWeapons = weaponsItemsCargo (vestContainer player);
I'll give it a go, thanks! :)

EDIT: It works, cheers! :D

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
Sign in to follow this  

×