Hello everyone, I followed this tutorial:
https://ugx-mods.com/forum/index.php?topic=5796.0and was wondering if you anyknow knows what I need to add to
getRandomPerk(player)
{
//DUKIP - Make sure we're not drinking anything already.
if(IsSubStr(player getCurrentWeapon(), "bottle") || (IsDefined(player.is_drinking) && player.is_drinking))
return;
all_perks = [];
all_perks[0] = "specialty_armorvest";
all_perks[1] = "specialty_quickrevive";
all_perks[2] = "specialty_fastreload";
all_perks[3] = "specialty_rof";
//all_perks[NUM] = "specialty_XXXX";
all_perks = array_randomize(all_perks);
thePerk = random(all_perks);
return thePerk;
}
- in order to get the bamskater b01 perks to work aswell (phd, staminup, deadshot, mule kick)
- and maybe how to delete the drinking animation this is made in the script
this should be a quick fix, any help would be appreciated!
Thanks for your help!