Main Forum

Wait Until

6 replies
Posts:
45
Sparks:
+17
Untagged users
it waits until the thing is done. like if player, if entity, or if game.
Posted Jan 10, 19 · OP
Posts:
144
Sparks:
+49
JrHelper
Overlord
already possible, easily.

RepeatWhileCond (Depends on Condition) { Wait 5 } example code

It will keep repeating until the condition is true (or false with NOT arrow).
You can use all IfEntity IfVariable IfPlayer actions in the RepeatWhileCond.
1799327.gif
Posted Jan 10, 19
Posts:
174
Sparks:
+37
Untagged users
As RyanLand said, a simple way to do this is a Repeat Forever then simply add an "IF" block with Stop Repeating or you could do as he said, to just do RepeatWhileCondition then add a Wait: 5
19.jpg
Posted Jan 10, 19
Posts:
144
Sparks:
+49
JrHelper
Overlord
I would use the WhileCond since the repeat forever will only check every 0.25sec and the whilecond is constantly checking and it takes up less space. Though the other way is wayy handier if you want multiple checks or doing some other complex stuff in repeats
1799327.gif
Posted Jan 11, 19
Posts:
159
Sparks:
+35
JrHelper
Overlord
Ryan Ryan Ryan..... you got something totally wrong there. The WhileCond doesn't run faster than Forever. They both run each 0.25 seconds if you wait 5 ticks
enjin-949475-16552968-gray.png
Posted Jan 12, 19
Posts:
174
Sparks:
+37
Untagged users
He's referring to the "RepeatWhileCondition" part
19.jpg
Posted Jan 12, 19
Posts:
159
Sparks:
+35
JrHelper
Overlord
Ah yea I see now xd
enjin-949475-16552968-gray.png
Posted Jan 12, 19
NoticeNotices