Setweaponammostock issue with claymore
-
Hello, im having an issue with this script. It still adds claymores to the stock. Can anyone help me fix this? Thanks
if( self GetCurrentWeapon() != "claymore_zm" ) { stockcount = self getweaponammostock( self GetCurrentWeapon() ); self setWeaponAmmostock( self GetCurrentWeapon(), stockcount + 1 ); wait 0.9; } -
Hello, im having an issue with this script. It still adds claymores to the stock. Can anyone help me fix this? Thanks
if( self GetCurrentWeapon() != "claymore_zm" ) { stockcount = self getweaponammostock( self GetCurrentWeapon() ); self setWeaponAmmostock( self GetCurrentWeapon(), stockcount + 1 ); wait 0.9; }chasef7 GetCurrentWeapon() will only return "claymore" if the player is holding the claymore in their hands. You need to use self getweaponslist() which ignores equipment and tacticals and lethals.
-
chasef7 GetCurrentWeapon() will only return "claymore" if the player is holding the claymore in their hands. You need to use self getweaponslist() which ignores equipment and tacticals and lethals.
JezuzLizard yeah but the script only runs on the current weapon anyway so im a bit confused why it ignores the if statement. all good.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login