WaitForStop


Pauses code execution until the given path-controlled object reaches its destination. The next line of code will not run until the object arrives at the destination frame's position. WaitForStop() will not work with AI using frame movement. Syntax:

WaitForStop(object);