Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!I would like to know how to give one a perk with a usable trigger.
Here is a function you could use to give a player a perk with a trigger:
I've tried this with both electric cherry and juggernog, but it didn't work. However, I looked in the zm_perks script and found the give_random_perk() function, which works perfectly. Am I missing something here?
I used the following code to give electric cherry, but it didn't work. It took up a perk slot but didn't give me the icon nor effect.
Were would I look to tell it to give me all perks?
Just go into root/scripts/zm/_zm_perks.gsc and look through the functions until you find what you need.
If there isn't a way to give all perks just give one at a time.
I'm pretty sure it's possible, if you look at Madgaz Gaming's FABRIK DER UNTOTEN map he has a buyable Perk-a-Lot machine which gives you all the perks when you buy it.
What I mean't was if it wasn't possible with a single function just do the give_perk function for every perk at once.
Ill look right now and see if they made a function for giving them all at once.
EDIT:
It doesn't look like tryarch made a function for giving all perks.
You can just give the player every perk at the same time and it will essentially be the exact same.
If you are still having trouble with giving perks, make sure this is included in the script:
and for the perkname just look inside _zm_perks.gsh for all the names.(root/share/raw/scripts/zm/_zm_perks.gsh)
player zm_perks::give_perk("specialty_electriccherry", true);
^(what my thing looks like) Idk I cant get it to work I have tried true, and false different perks I just don't know what I'm doing wrong
Double Post Merge: October 12, 2016, 03:32:15 am
nvm I saw that one guy just post it on the shootable trigger topic