UGX-Mods
Call of Duty: Black Ops 3 => Tutorial Desk => Scripting => Topic started by: BIGCountrysTV on November 27, 2019, 07:26:57 pm
-
Hello! I have been looking all over to figure out how to give all players all perks after they complete the task of finding the items I want them to find. I have 13 perks in the map but only 6 can be bought. I want the rest to be rewarded for completeing the EE. Anyone can help point me in the right direction?
Thanks
-BC
P.S
If it wasnt obvious, this is for my custom zombies map for BO3
-
you could have
all_items_acquired = 0;
and then when a item is picked up do-
all_items_acquired = all_items_acquired + 1;
2nd item-
all_items_acquired = all_items_acquired + 1;
3rd item-
all_items_acquired = all_items_acquired + 1;
then you could do-
if(all_items_acquired == 3)
{
//place the non_buyable perk trigs here
//when true, triggers should auto trigger therefor giving the player each of the perks without going up to the perk machines
revive_trig = getent("w.e the revive trig is called(can be found in _zombiemode_perks. probs zm_perks in bo3)", "targetname")
revive trig waittill ("trigger", player);
//then same for other trigs
}
something like that. should be fairly easy
add a wait 2; or something between each trig. otherwise itll try and give all perks at same time and probs crash