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

Any Way to give a starting perk (and get it back even if you bleed out)???

broken avatar :(
Created 9 years ago
by dbzfun2
0 Members and 1 Guest are viewing this topic.
1,873 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 18 April 2016
Last active: 9 years ago
Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
dbzfun2's Groups
dbzfun2's Contact & Social Links
I'm trying to make a starting perk as in the player spawns but gets a certain perk and that perk I wanted to be was Electric Cherry. (Yes for my map Not my mod incase you were wondering, also can't click the # button for some reason so I can't paste my script in...) If anyone knows the script for the starting perk I would like to ask If I could receive it.

- Sokon (dbzfun2)
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 9 months ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
I'm trying to make a starting perk as in the player spawns but gets a certain perk and that perk I wanted to be was Electric Cherry. (Yes for my map Not my mod incase you were wondering, also can't click the # button for some reason so I can't paste my script in...) If anyone knows the script for the starting perk I would like to ask If I could receive it.

- Sokon (dbzfun2)

Well you could give them a perk once they spawn then have some sort of while loop that has a waittill for when the player gets revived and gives back the perk.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 18 April 2016
Last active: 9 years ago
Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
dbzfun2's Groups
dbzfun2's Contact & Social Links
Well you could give them a perk once they spawn then have some sort of while loop that has a waittill for when the player gets revived and gives back the perk.
Yeah that's what I was planning on But needed a script for it, I'm still trying to learn scripting for bo3 Lol.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 5 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
The callbacks_shared.gsc, in the scripts\shared subfolder, is used for doing things on player connect and player spawned. You can add this call and a function to do whatever you want when a player spawns. As for giving perks, there are several options, random and specific, in the _zm_perks.gsc

For example:
Code Snippet
Plaintext
// callback::on_spawned(&GiveMePerk);//added in main and ensure the using for the callback_shared script is at top, along with teh _zm_perks using
function GiveMePerk(){
self zm_perks::give_perk(perk, false);//replace perk with the specialty, or include the gsh and use the var
}
Last Edit: November 11, 2016, 02:44:14 pm by MakeCents

 
Loading ...