Signature:
void fadesync(); // id: 0x00b9
Blocks until last fadein/fadeout transition is complete.
Some of the original scripts put wait with the same amount of time after fade calls, but this seems to be the intended way to sync.