Jump to content
Sign in to follow this  
R4IDER

primaryWeaponMagazine

Recommended Posts

Hi,

I am currently working on a mission where I would like to limit the maximum number of magazines a player can carry. Each player is going to have different weapons so I need to be able to detect what ammo they have, to do this I have been trying to use primaryWeaponMagazine but the problem with this is that it returns "["30Rnd_65x39_caseless_mag"]" and I am not to sure how I can turn that into something I can use with removeMagazine.

The end result should be player removeMagazine "30Rnd_65x39_caseless_mag";

Thanks

Share this post


Link to post
Share on other sites
priMag = primaryWeaponMagazine player;
player removeMagazine (priMag select 0);

Share this post


Link to post
Share on other sites

Is it possible to do something similar with first aid kits?

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  

×