Actually, what are you trying to do here, you're psuedo code is not really specific and what do you mean by "lot"?
Title: Re: how to script a choice of choosing between 2 triggers.
Post by: DeletedUser on December 27, 2020, 09:14:08 am
heres a vid of what im trying to do. its what ive done so far. i just need to sort the [select] bit out now. which is why i need 2 trigs to remain active and the player can choose from 1 of the 2 & depending on which one they choose depends on whether the script 'proceeds' or returns to start.
heres a vid of what im trying to do. its what ive done so far. i just need to sort the [select] bit out now. which is why i need 2 trigs to remain active and the player can choose from 1 of the 2 & depending on which one they choose depends on whether the script 'proceeds' or returns to start.
Can I see how you have it setup in Radiant? Also, add me on discord: LilGabe#2429
Title: Re: how to script a choice of choosing between 2 triggers.
Post by: gympie6 on December 30, 2020, 11:53:05 pm
You need to thread the methods to achieve your goal. you know... self thread Test1(); self thread Test2(); self thread Test3();
Like a crossway where you can task your workers to do stuff for you.
Title: Re: how to script a choice of choosing between 2 triggers.
Post by: DeletedUser on December 31, 2020, 02:53:04 pm
You need to thread the methods to achieve your goal. you know... self thread Test1(); self thread Test2(); self thread Test3();
Like a crossway where you can task your workers to do stuff for you.
like you mentiond before-
"I don't know which way you want you can loop through an array of triggers and thread it to one method or you can get a few entities like I have here and thread those"
im currently trying out- "you can loop through an array of triggers and thread it to one method".
issue im having is even tho i can choose between 1 or the other trig. in order to get weapon 2 i 1st Have to get weapon1. i can cycle thru the 3 functions with no problem. it just wont let me get access to another other weapon until weapon1 trig has been activated. so even tho i can choose. i still have to also use both trigs to proceed to acquiring weapon2 from func2. i tried endon & notify. which i got it working. (to killt the function i mean by 'working'. not the script). but i need to call on each func at the end so terminating the func is no good here. as both trigs are within a loop and i have a break; outside of both trigs, but inside the loop. i thought that by selecting any trig it would then break out of the loop, therefore forgetting about the other trig and then proceed to func2();. but this isnt the case