UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Add ammo to stock

broken avatar :(
Created 7 years ago
by pvtseacow
0 Members and 1 Guest are viewing this topic.
1,300 views
broken avatar :(
×
broken avatar :(
Location: usNew Jersey, USA
Date Registered: 8 July 2013
Last active: 3 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Mapping Beginner
Signature
My First Map, Zombie Help[WIP]: http://ugx-mods.com/forum/index.php?topic=1422.0
×
pvtseacow's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
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:
Last Edit: April 23, 2017, 12:33:44 am by pvtseacow

 
Loading ...