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; }
-
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.