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 give player random perk instead of specific one

broken avatar :(
Created 10 years ago
by bird.person
0 Members and 1 Guest are viewing this topic.
1,369 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2016
Last active: 10 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
bird.person's Groups
bird.person's Contact & Social Links
(I accidentally posted this in the wrong thread, so I'm reposting it here)

Instead of giving a specific perk like this:

player zm_perks::give_perk( PERK_ELECTRIC_CHERRY, false );

How could I set it to give a random perk?
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
You can thread another function in zm_perks script on the player.
Code Snippet
Plaintext
player zm_perks::give_random_perk();

 
Loading ...