I was browsing BIS wiki and came across this. I've actually never thought of this, i've always thought waitUntil uses a while loop or something, but really it uses onEachFrame. So you can use waitUntil to do onEachFrame stuff like drawIcon3D. InfiSTAR will never be able to patch waitUntil, because almost all missions use it. Hope you have fun with it
Note: waitUntil is not as "solid" as onEachFrame, so it might skip some frames if you already have low FPS. I tried in VR, had about 50-70 FPS and it was flawless.
Code:
[] spawn { _var = 0; waitUntil {_var == 1; code to be exec'd on each frame goes here }; };