Author |
Message |
Kyred
Joined: Sun May 31, 2009 1:04 am Posts: 308
|
 HeldDevice.Ammo?
Is there a Lua variable or function that can tell you how much ammo is left in your gun/magazine?
|
Sun Jun 21, 2009 2:26 am |
|
 |
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
 Re: HeldDevice.Ammo?
Nope. You can have casings with lua that update a global actor indexed list. Better yet, index it with the HDFirearm itself.
|
Sun Jun 21, 2009 2:49 am |
|
 |
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
 Re: HeldDevice.Ammo?
You can also check if it's full with HeldDevice:IsFull, but that's probably not what you're looking for.
|
Sun Jun 21, 2009 6:50 am |
|
 |
|