
Posts
191
Respect
29Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
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!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I have a custom perk setup within _zombiemode_perks, but where exactly do I thread and script the function for the perk after you buy it? Can't figue it out and have been searching for hours
perk_function()
{
while(1)
{
if(self HasPerk("specialty_perk"))
self perk_effect();
else self effect_without_perk();
wait(.1);
}
}
players = get_players();
for(i=0;i<players.size;i++)
{
players[i] thread perk_function();
}
staminup()
{
while(1)
{
if(self hasperk("specialty_longersprint")) //rename the perk to yours
self setmovespeedscale(1.3); // add an effect
else
self setmovespeedscale(1); // reset the effect if the player has not the perk
wait .5;
}
}