- Home /
Bootcamp Weapon Hud & Reloading Problem
I have only just started to use unity in the past weekish, I have very little scripting experience but understand the basics. I have been playing around with the bootcamp demo provided in the asset store, The problem occurs on a unaltered version of bootcamp.
When you reload either of the provided weapons the hud does not recognize the decrease in the amount of clips remaining. I found the variable to turn of unlimited clips and the player does run out of ammo and clips but the weaponhud does not regonise this. Anyone have any idea why this occurs??? I had a look at the scripts that run the hud and the gun and gunManager scripts. Any help would be appreciated.
Answer by pinchmass · Aug 09, 2012 at 04:40 AM
just noticed this too.
have a look in GunManager.js at line 41 add
hud.clipsRemaining[currentWeapon] = guns[currentWeapon].gun.totalClips;
ammo remaining is sent but not clips remaining
Answer by Mertseger · Apr 04, 2014 at 06:56 PM
On Gun script (Gun.cs) of your weapon uncheck Unlimited checkbox ñ_ñ
Your answer
Follow this Question
Related Questions
Tower Defence Weapon hud 2 Answers
How to export or unpack unity prefabs? 2 Answers
how to rotate GUI Textures 5 Answers
Make my HUD full screen 2 Answers
animated hud when looking at an object 0 Answers