Jump to content

detecting a weapon's upgrade?


sparton646

Recommended Posts

I'm looking for a way to Detect a weapon's upgrades(scope,Ammo strap,etc) and return true if it detects a specific one

 

 

 

Any Ideas?

 

Look for the Get series of calls. E.G. getScope(), getCanon etc. I think those store what mod is attached. There is reference to them in the ISUIInventoryContextMenu lua file.also in one of the reloading files for the shotgun swan off recipe

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...