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

How to I make a shootable easter egg that gives a gun?

broken avatar :(
Created 9 years ago
by MustacheShotz
0 Members and 1 Guest are viewing this topic.
3,125 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 5 January 2017
Last active: 9 years ago
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
My Contact & Social Links
More
×
MustacheShotz's Groups
MustacheShotz's Contact & Social LinksSuh Dudehttps://www.youtube.com/u
I have been working on my challenge map for a little while now and have decided to add a shootable easter egg. I scripted in the shootable easter egg from a tutorial but it is only for giving perks. How do I change it to give a weapon (preferably the wunderwaffe)? Any help would very much be appreciated!
Marked as best answer by MustacheShotz 9 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents'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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I have been working on my challenge map for a little while now and have decided to add a shootable easter egg. I scripted in the shootable easter egg from a tutorial but it is only for giving perks. How do I change it to give a weapon (preferably the wunderwaffe)? Any help would very much be appreciated!

I don't know what tut you followed, but typically there would be a function to reward the player/players. In that function you would give the players a gun instead. Use this function to give the weapon:
Code Snippet
Plaintext
player zm_weapons::weapon_give(weapon);


If your script does not already have the using you will have to add it to the top:
Code Snippet
Plaintext
#using scripts\zm\_zm_weapons;

Here is my scripting tut if you have difficulty editing the script you have. http://ugx-mods.com/forum/index.php/topic,14471.0.html
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 5 January 2017
Last active: 9 years ago
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
My Contact & Social Links
More
×
MustacheShotz's Groups
MustacheShotz's Contact & Social LinksSuh Dudehttps://www.youtube.com/u
I don't know what tut you followed, but typically there would be a function to reward the player/players. In that function you would give the players a gun instead. Use this function to give the weapon:
Code Snippet
Plaintext
player zm_weapons::weapon_give(weapon);


If your script does not already have the using you will have to add it to the top:
Code Snippet
Plaintext
#using scripts\zm\_zm_weapons;

Here is my scripting tut if you have difficulty editing the script you have. http://ugx-mods.com/forum/index.php/topic,14471.0.html
THANK YOU SO MUCH!!!!! I had to figure out how to initialize it first but i did and it works! THANKS!

 
Loading ...