WaitFor (script event)

Game class

This event operates on an instance of the game class type idThread , accessible via sys identifier.

Description

Waits for entity to complete it’s move.

Usage

void waitFor( entity mover )

Parameters

[mover] - entity to wait for.

Parameter only supports entities of following spawn classes :

Doom 3: idCameraAnim , idMover , idMover_Binary .

Quake 4: idCameraAnim , idMover , idMover_Binary , rvSplineMover

Examples

$mymover.move( UP, 100);
 
sys.waitFor( $mymover );
 
$mymover.move( DOWN, 100);

Notes

Note: Enemy Territory: Quake Wars only:
This event does not apply

See threads for more information.