SkipUntilCharacterStops(CHARID)
Skips through the game until the specified character stops walking, a blocking
script runs, or a message box is displayed.
The purpose of this command is to mimic the functionality in games such as The Longest Journey,
where the player can press ESC to instantly get the character to its destination. It serves
as a handy feature to allow you to give the player character a relatively slow walking speed,
without annoying the player by making them wait ages just to get from A to B.
If the specified character is not moving when this function is called, nothing happens.
Example: (in on_key_press)
if (keycode == eKeyEscape) SkipUntilCharacterStops(EGO);
This means that if the player presses ESC, the game will skip ahead until EGO finishes
moving, or is interrupted by a Display command or a blocking cutscene.
See Also: StartCutscene
|