View Full Version : Ammo and HUD's
8th Nov 2001, 01:04 AM
Can someone please explain the code that draws the ammo ammounts on the screen. Well actually i know how to draw it to the screen, i need to know how to obtain it.
I only have 5 weapons presumably in slots 1-5.
Thanks in advance!
To get the ammo count of a player's current weapon ammo count just look ref something like this:
To find the ammo for a specific weapon in a Player's inventory you would have to do something like this:
local MyWeapon weap;
weap = MyWeapon(Player.FindInventoryType(class'MyWeapon'));
if (weap != None)
// deal with ammo ammount here
Does that help?
9th Nov 2001, 04:21 AM
Works great. Thanks for the help.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.