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

Get Weapon Stock Size?

broken avatar :(
Created 8 years ago
by Linoxet
0 Members and 1 Guest are viewing this topic.
3,229 views
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
How can I get the Weapon Stock Size? I've found "weaponClipSize( <weapon name> );" but not something like "weaponStockSize", thanks in advance.
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
Code Snippet
Plaintext
GetWeaponAmmoStock( Weaponfile Name );
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
Code Snippet
Plaintext
GetWeaponAmmoStock( Weaponfile Name );

Did not worked, can you give me an examble of how to use it?
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Did not worked, can you give me an examble of how to use it?

Code Snippet
Plaintext
stock_ammo = GetWeaponAmmoStock("zombie_thompson");
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
I'm getting unkown function... Lol

Edit: This is the part of the script I'm using for testing

Code Snippet
Plaintext
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;

main()
{
trigger = GetEnt("ammo_build_trigger", "targetname");

trigger waittill("trigger", player);

stock_ammo = GetWeaponAmmoStock ("chespirator");
player iprintln ("ammo is " + stock_ammo);
}
Last Edit: April 13, 2016, 11:44:44 pm by Linoxet
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
I'm getting unkown function... Lol

Edit: This is the part of the script I'm using for testing

Code Snippet
Plaintext
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;

main()
{
trigger = GetEnt("ammo_build_trigger", "targetname");

trigger waittill("trigger", player);

stock_ammo = GetWeaponAmmoStock ("chespirator");
player iprintln ("ammo is " + stock_ammo);
}

Ah, sorry. That function requires a player, so do:

Code Snippet
Plaintext
stock_ammo = player GetWeaponAmmoStock("chespirator");

Last Edit: April 13, 2016, 11:51:07 pm by daedra descent
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
It worked, but did not solved my problem at all, I'll see what I can do, thanks a lot for the help guys :D
Marked as best answer by Linoxet 8 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 9 months ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
My preferred name is "xSanchez78".
Check me out here: www.steamcommunity.com/id/xSanchez78
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
No he is asking for the version of weaponclipsize but for stock ammo, which is
Code Snippet
Plaintext
WeaponMaxAmmo( weapon );
Last Edit: April 17, 2016, 02:43:29 am by alaurenc9
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
No he is asking for the version of weaponclipsize but for stock ammo, which is
Code Snippet
Plaintext
WeaponMaxAmmo( weapon );

You saved my life, thanks  :D :D
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
No he is asking for the version of weaponclipsize but for stock ammo, which is
Code Snippet
Plaintext
WeaponMaxAmmo( weapon );

Well, not saying that's not what he wanted, it was, but that's not exactly what he asked, should have been more clear..

Should have stated clearly he wanted to find Max Ammo.
Last Edit: April 17, 2016, 08:49:00 am by Scobalula
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 2 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
Well, not saying that's not what he wanted, it was, but that's not exactly what he asked, should have been more clear..

Should have stated clearly he wanted to find Max Ammo.

I said I wanted the Stock version of "weaponClipSize", I'm sorry if I was not clear
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
I said I wanted the Stock version of "weaponClipSize", I'm sorry if I was not clear

No problem at all man, no worries, as long as you got your question answered, all that matters. :)

 
Loading ...