this is just a very basic general question, and although i have spent a little bit of effort searching for a thread on this topic, i only got 1 relevant thread with the keywords "minimum interval check condition", and though the thread does provide some possible answers, it does not totally answer my doubts.
i want to have a wait loop that waits for a condition to be true. it is now this:
it is not giving any problems yet as the interval between checking is 2 seconds. however, i noticed that in GUI world editor, the limit is 0.10 seconds, and it will not go below. even when it is converted to JASS whatever value entered will be compared to bj_WAIT_FOR_COND_MIN_INTERVAL which is 0.10 seconds and any value below will be ignored and the value of 0.10 will be used instead. *edit: Minigame_End_Check() is actually just a function that checks for a boolean that is going to be manually set to true when my "minigame" has ended.
so the question is:
if i want a more precise check (something like 0.01 seconds), i know it is a bad practice, will there be anything wrong(bugs etc.) with
i have tried testing this, it worked fine but i am doubtful of how clean it is, will it cause any internal errors or what?
i want to have a wait loop that waits for a condition to be true. it is now this:
Code:
loop
exitwhen ( Minigame_End_Check() )
call TriggerSleepAction(2.00)
endloop
it is not giving any problems yet as the interval between checking is 2 seconds. however, i noticed that in GUI world editor, the limit is 0.10 seconds, and it will not go below. even when it is converted to JASS whatever value entered will be compared to bj_WAIT_FOR_COND_MIN_INTERVAL which is 0.10 seconds and any value below will be ignored and the value of 0.10 will be used instead. *edit: Minigame_End_Check() is actually just a function that checks for a boolean that is going to be manually set to true when my "minigame" has ended.
so the question is:
if i want a more precise check (something like 0.01 seconds), i know it is a bad practice, will there be anything wrong(bugs etc.) with
Code:
loop
exitwhen ( Minigame_End_Check() )
call TriggerSleepAction(0.01)
endloop