View unanswered posts | View active topics It is currently Fri Apr 19, 2024 2:30 am



Reply to topic  [ 3 posts ] 
 HeldDevice.Ammo? 
Author Message
User avatar

Joined: Sun May 31, 2009 1:04 am
Posts: 308
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post 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
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.052s | 17 Queries | GZIP : Off ]