Product Chat / About properties>ammo quantity

Author
Message
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 5th Jun 2016 08:43
Hi guys
Any chance to get this value, via script?

I want to know the ammo quantity , IE: ".38 Cartridges (Pistol)" value, in properties panel, via script.
I've searching 4 any LUA command, some sort of "GetAmmoQty()" to be able to get those values.

Is there any LUA command I'm missing out?

Thanks guys 4 all feedbacks, sorry 4 many questios lately, but since can't test SAO, so testing LUA commands; anyway as always in the life, finally you end needing non-existing commands, to test other commands.

I know you can get total ammo qty, but does not howmany bullets has, each one.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 5th Jun 2016 22:11 Edited at: 5th Jun 2016 22:13
g_PlayerGunClipCount I would imagine or ammo count which is above it depending on what you want.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 6th Jun 2016 04:50
I've tested most of them, and it looks like those control player weapon only.
So, if you've a shotgun, so you get all shotgun related.

Quote: "g_PlayerGunID = 0
g_PlayerGunName = ""
g_PlayerGunMode = 0
g_PlayerGunFired = 0
g_PlayerGunAmmoCount = 0
g_PlayerGunClipCount = 0"


"g_PlayerGunAmmoCount" was the first I've tested, just gives you the ammo qty of the weapon the player are using for.



You can notice in the pic, the ammo qty is set to 10, but user can set wharever value he want, so I'm asking about any LUA command to get that value.

Let's say you've 3 boxes of ".38 Cartridges (Pistol)", and each one has 10 bullets, so you've 30 bullets; now than I have that value, I can run a counter to control ammo qty. (as example)

Thanks Dvader 4 the tip.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 6th Jun 2016 19:07
That LUA commands does not exist at present. Does anyone else want to see this LUA command above any others you've already suggested to me? Thanks.
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

Login to post a reply

Server time is: 2024-06-26 08:04:55
Your offset time is: 2024-06-26 08:04:55