Jump to content
Sign in to follow this  
justenzy

How to remove 1 weapon from inventory?

Recommended Posts

Ok, so i want to remove a specific gun from a backpack.

So far i got this.

if ("hgun_P07_F" in WeaponCargo unitbackpack player  ) then {  
	removeweapon PLAYER "hgun_P07_F" 
} else {   hint " You do not have a gun!"  }  

Share this post


Link to post
Share on other sites

Its impossible to remove single weapon\magazine\item from any container, only everything at once (Yes, its stupid limitation, devs didn't bother to make an appropriate command). There is kind of way to do it by removed everything and then adding everything back except 1 item that you wanted to be removed but it will reset ammo counters (half-empty mags will become full againt) and weapons will lose attachments and loaded magazines.

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  

×