|
Post by mrquaid on Oct 30, 2018 4:37:23 GMT
Does any one know how to get the current ammo count for a specific ammo type. I thought I had it working with the line below, but that only gets the very first count, not the count after I fire the gun.
Save_Manager.shotgunAmmo = vAmmoManager.ammoListData.ammos[3].count;
What I want to do is just capture the current count so i can save it for scene changes and save game loads.
|
|
|
Post by mrquaid on Oct 31, 2018 0:53:17 GMT
Figured it out, in case anyone else needs to know.
ammoManager.GetAmmo(14).count
Just reference the vAmmoManager, then use GetAmmo(ammo id), and count to get the current count.
|
|