Jump to content
Sign in to follow this  
pliskin124

Removing Launcher (Weapon) from Player Only

Recommended Posts

I made this script in an attempt to remove a launcher (RPG etc.) from the player and give them money in exchange, it works great for the primary weapon but I can't seem to figure out how to remove ONLY the launcher from the player. I realize that secondaryWeapon's are launchers and not pistols, however I'm not sure what to put for the removeWeapons section without having to define every single classname.

 

_Secondary = secondaryWeapon player;

if (_Secondary == "") then {
hint "You have no launcher to sell."; } else {
player addRating 600;
removeAllWeapons player;
cutText ["Launcher sold for 1200$","BLACK IN"]
};

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  

×