WaitUntilMoved routine

TURBU

WaitUntilMoved routine

 

Pauses the script until all characters have finished their move scripts.

 

Syntax

 

procedure waitUntilMoved;

 

Description

 

This routine pauses the current script until all characters on the map with assigned move scripts have completed the move script at least once.  Characters that move by their default movement parameters are not included.

NOTE: If another script calls stopMoveScripts while waitUntilMoved is waiting, the waiting will immediately end, as all assigned move scripts will be canceled.

WARNING:  If any character is running a move script with the ignore parameter set to false, it is possible for the waitUntilMoved routine to deadlock a script indefinitely if the character runs into an obstacle that does not move.

 

Related topics

stopMoveScripts routine

TRpgCharacter.move

This help file was created with the free trial version of HelpScribble.