#RooTs Posted June 28, 2015 Posted June 28, 2015 can someone pass me a base for when I get to 0 of ammunition I do not lose the gun?
Dealman Posted June 28, 2015 Posted June 28, 2015 Check if the remaining ammo is 1, and if it is - prevent the player from firing it and notify them that their weapon is out of ammo. Just subtract 1 from the ammo you show on the HUD, and it'll look as if it has 0 ammo. There are some other ways to do it as well I guess.
#RooTs Posted June 28, 2015 Author Posted June 28, 2015 Check if the remaining ammo is 1, and if it is - prevent the player from firing it and notify them that their weapon is out of ammo.Just subtract 1 from the ammo you show on the HUD, and it'll look as if it has 0 ammo. There are some other ways to do it as well I guess. give-me example of code "noTakeWeapon" in ammo 0
xeon17 Posted June 28, 2015 Posted June 28, 2015 He perfectly explained you what you have to do,are you seriously requesting a example for a few lines of code?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now