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

broken avatar :(
Created 8 years ago
by bird.person
0 Members and 1 Guest are viewing this topic.
1,456 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2016
Last active: 8 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
bird.person's Groups
bird.person's Contact & Social Links
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?

Double Post Merge: October 29, 2016, 08:31:46 pm
Sorry I put this in the wrong thread. Meant to post to help desk. How the heck do you delete posts on this site?? Sorry im new
Last Edit: October 29, 2016, 08:31:46 pm by bird.person
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
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?

Double Post Merge: October 29, 2016, 08:31:46 pm
Sorry I put this in the wrong thread. Meant to post to help desk. How the heck do you delete posts on this site?? Sorry im new

Someone will probably move the post for you once they see it.

You can give a random perk by doing:
Code Snippet
Plaintext
player zm_perks::give_random_perk();

 
Loading ...