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 name from weapon object

broken avatar :(
Created 7 years ago
by jakob9696
0 Members and 1 Guest are viewing this topic.
1,817 views
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 18 August 2015
Last active: 4 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Call me jjakob and not jakob9696 ;)
Signature
If you find errors in my post, excuse me for my bad english... I'm italian...

Developing custom banana colada script: https://youtu.be/OW_bIbCnXzo
Developing Gobblegums script: https://youtu.be/cWGzQ1dkTAE
×
jakob9696's Groups
jakob9696's Contact & Social Linksjjakobjjakob9696
I need to get weapon name from a weapon object:
for example:
Code Snippet
Plaintext
 wpnObj = level._custom_perks[ PERK_JUGGERNOG ].perk_bottle_weapon;
 wpnname = GetWeaponName( wpnObj); // or GetWeaponScriptName -->  is exist this function?

I known that in this case i would script a function with a switch(perk) and in all cases set perk weapon name but i need it for others cases without editing any treyarch script.
could someone tell me if this exist or how to script it, please?
Last Edit: December 06, 2016, 06:39:13 pm by jakob9696
Marked as best answer by jakob9696 7 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
weapon name from weapon object is:

Code Snippet
Plaintext
weaponname = weapon.rootweapon.name;

These are found in your root folder, in the one folder with the other helpful things and on ugx wiki
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 18 August 2015
Last active: 4 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Call me jjakob and not jakob9696 ;)
×
jakob9696's Groups
jakob9696's Contact & Social Linksjjakobjjakob9696
thanks you  ;)
broken avatar :(
×
broken avatar :(
Location: at
Date Registered: 26 November 2016
Last active: 6 years ago
Posts
45
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Signature
12 year old music critic, quadrasexual Minecrafter, Linkin Park fan, Hentai enthusiast, intelligent atheist and vegan.
×
Cxwh's Groups
Cxwh's Contact & Social LinksCxwhModsGodAspire
I also think you can use weapon.displayName

 
Loading ...