HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Function Interfaces and Wait() Compatibility

11-15-2008, 10:54 AM#1
fX_
Is there ANY way to make call waits from function interfaces?

I want to keep a code series sequential, but my code has to wait for a condition to be met. I figured to use a

loop
exitwhen myCondition
call TriggerSleepAction(1.00)
endloop

but I am unable to get this run from calling the function by its interface .evaluate(), not even by first .evaluate()-calling an intermediate function that directly calls the function with the waits.

I NEED to use function interfaces because functions are treated as objects in arrays, here.
I NEED to use .evaluate(); I cannot use .execute(), because doing so would split the sequential code-calling.
How can I call these function interfaces AND use waits in them?
11-15-2008, 11:18 AM#2
Captain Griffen
You cannot use waits in evaluation threads. End of story. If you NEED to use waits and NEED to use .evaluate, then give up. Simple logic. (Or find which premises are flawed.)
11-15-2008, 11:22 AM#3
Vexorian
You can use .execute and have the calling thread wait till the other one ends.
11-15-2008, 11:28 AM#4
fX_
Vexorian, I was hoping there was a simpler way :c. Oh well, arduous work.
11-15-2008, 11:29 AM#5
Vexorian
This is the sort of thing that depends on blizz 100%.
11-15-2008, 12:03 PM#6
fX_
Also, the method you suggested doesn't allow this to be done in higher degrees; I cannot loop-do-that in a function that is already part of another loop-do-that function.