Main Forum

Wait Until

6 replies
Posts:
55
Sparks:
+17
it waits until the thing is done. like if player, if entity, or if game.
Posted Jan 10, 19 · OP
Posts:
160
Sparks:
+53
Jr. Helper
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:
198
Sparks:
+45
Overlord
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:
160
Sparks:
+53
Jr. Helper
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:
161
Sparks:
+35
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:
198
Sparks:
+45
Overlord
He's referring to the "RepeatWhileCondition" part
19.jpg
Posted Jan 12, 19
Posts:
161
Sparks:
+35
Overlord
Ah yea I see now xd
enjin-949475-16552968-gray.png
Posted Jan 12, 19
NoticeNotices