UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: pvtseacow on April 23, 2017, 12:09:45 am

Title: Add ammo to stock
Post by: pvtseacow on April 23, 2017, 12:09:45 am
Just like what the title says, all I want to do is add ammo (Not give max ammo) to the stock

I really want to use this for a custom perk im making. (Ammo regeneration)

Double Post Merge: April 23, 2017, 12:33:44 am
Nevermind, im dumb. I was doing
Code Snippet
Plaintext
weapon = self GetCurrentWeapon();
ammoSize = self GetAmmoCount( weapon );
self SetWeaponAmmoStock( weapon , ammoSize + 1 );
instead of
Code Snippet
Plaintext
weapon = self GetCurrentWeapon();
ammoSize = self GetWeaponAmmoStock( weapon );
self SetWeaponAmmoStock( weapon , ammoSize + 1 );
:derp: