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

Assigning a Weapon to an Inventory Slot

broken avatar :(
Created 9 years ago
by jiggy22
0 Members and 1 Guest are viewing this topic.
2,325 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 5 months ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksjiggy22archdukesquidlylll
For my mod, I'm currently trying to add the hands from BO as a secondary weapon. I've got them ported just fine, but I was wondering if it was possible to assign them to an inventory slot as opposed to a weapon slot (like how the Bouncing Betties and Grenade Launcher work). When I try to do this in the UGX weapon editor, I can't use them at all, so I'm guessing there's some scripting that I have to do for it to work right. Anybody know what to do? Thanks :)
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 9 May 2015
Last active: 7 years ago
Posts
103
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Signature
"Mod builder lied. Everything isn't ok."
×
pwman123's Groups
pwman123's Contact & Social Linkspwman123pwman123pwman123
Are you saying you want them to be a weapon (like zombie_melee) or alternative viewhands?
Last Edit: February 09, 2017, 08:55:13 pm by pwman123
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 5 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Code Snippet
Plaintext
self giveweapon("WEAPON_NAME");
self setactionslot(1,"weapon","WEAPON_NAME");
self setweaponammostock("WEAPON_NAME", 1);
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 5 months ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksjiggy22archdukesquidlylll
Code Snippet
Plaintext
self giveweapon("WEAPON_NAME");
self setactionslot(1,"weapon","WEAPON_NAME");
self setweaponammostock("WEAPON_NAME", 1);

What gsc file would this go in? Thanks again!
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 5 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
death_reaper0's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
wherever the script is for setting up that weapon
Marked as best answer by jiggy22 9 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
And ofc will need to be ran "on a player"
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 5 months ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksjiggy22archdukesquidlylll
Thanks for the help!

 
Loading ...