Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Member
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!Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Hold all the triggers in order in an array and thread all of them to a secondary function (with array_thread()). In that function waittill (inside a while loop) for the trigger to be triggered and notify something on the level, passing the trigger in the notify, like this:
Then make a loop in the main function that will waittill that level notify and check if the trigger is the next, like:
Haven't tested, but it might work.
Possibly another solution, also not tested:
To test, put as many trigger_use's as you like with targetname ptrigs in radiant
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
A single detail: The script MakeCents, had to change the line:
for:
Thank you so much!
Sure thing. But... that line I had was only so it thread the reward only once. Your change would thread it for each trigger use you have, which may not be what you want. I'm not sure why it wouldn't thread with my line, but it was just meant to keep it from threading multiple times. you could change it to 1, or maybe you modified something? Doesn't really matter if you got it working, I just didn't want you to thread that reward once per trig is all.
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
I understand... But this way, I can not make the script work properly ...: \
I have a question that arose changing some code... I had to make some changes to when the puzzle is finished, change the trigger does... And for that I used flag, but when active the flag through flag_set (""), the game crashes by some 2 seconds... what could be happening? I tested put flag_set in various places in the script and keeps crashing...
Did you ever flag_init("flagname");
also, I think the prob with my script was it needed the int like this:
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Oh yeah, it worked perfectly now! Thank you! About flag_init ("flagname"), I have not used... I did not know it was necessary to use... Should I use the script from the beginning, or shortly before flag_set?
To set a flag, it needs to have it init. I'm not following you on the last part. I would init your flag either via kvp, or just manually in your function.