Count/Display Ammo Count on HUD
Posted: Mon Apr 27, 2020 9:46 am
I want to accomplish the following via ACS:
1. I want to count the player's available ammo, by ammo type, during a play-through of a given map. I believe I can do this by using CheckInventory
2. I want this to be displayed in the upper left-hand corner of the HUD
3. I want the ammo count to be updated each time the player expends ammo. This is where I am running into trouble. How to set up a script to check the inventory only when the player is expending ammo? Perhaps it might be better to have the script continuously check the ammo count and display it. But wouldn't this be a wasteful use of computational resources?
I have done a cursory search of the forums, but have found nothing. I'm guessing someone has already developed what I'm asking about, but I can't find anything.
I'd appreciate any help.
1. I want to count the player's available ammo, by ammo type, during a play-through of a given map. I believe I can do this by using CheckInventory
2. I want this to be displayed in the upper left-hand corner of the HUD
3. I want the ammo count to be updated each time the player expends ammo. This is where I am running into trouble. How to set up a script to check the inventory only when the player is expending ammo? Perhaps it might be better to have the script continuously check the ammo count and display it. But wouldn't this be a wasteful use of computational resources?
I have done a cursory search of the forums, but have found nothing. I'm guessing someone has already developed what I'm asking about, but I can't find anything.
I'd appreciate any help.