Can I successfully have more than one working while loops
#1
Posted 03 September 2018 - 05:50 AM
^ Including while in another while loop?
#2
Posted 03 September 2018 - 09:19 AM
Edited by venrob, 03 September 2018 - 09:19 AM.
#3
Posted 03 September 2018 - 12:09 PM
That is correct. However, it is possible to call another script from an item script if you really need to.
#4
Posted 04 September 2018 - 03:35 AM
You can nest loops.
while(cond_a) { while(cond_b) { // } }
Clarification: You can use while/for/do loops in item scripts, but the entire loop must run during one frame. A call to Waitframe() will prematurely end the script.
You obviously cannot have concurrently-running loops in the same script, only nested, or consecutive.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users