Es delayed

From EventScripts Community Encyclopedia

Overview

Syntax: es_delayed <delaytime> <command>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: es_xdelayed

Description

Executes the command after the delaytime (in seconds)

Parameters

  • delaytime - Number of seconds that you'd like to delay the command for. (can be float values, i.e. 1.23)
  • command - Command to be executed. Can be a single command or a block (using es_xdoblock).


Examples

es_delayed .1 es_msg delay of .1 seconds
es_msg no delay
es_delayed .6 es_msg delay of .6 seconds
es_delayed .3 es_msg delay of .3 seconds
//will be displayed as:
//no delay
//delay of .1 seconds
//delay of .3 seconds
//delay of .6 seconds 


Notes

  • Important note: All pending commands that have been es_delayed are cleared on a map change. This is by design.


See also

blog comments powered by Disqus