Es soon

From EventScripts Community Encyclopedia


Overview

Syntax: es_soon <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_xsoon

Description

Places the command at the end of the current command-queue. Runs sooner than es_delayed 0.00001, but isn't "in-line" like a normal command. Pretty much like you typed the command at the console. Be careful with event_var()'s just as you would be with es_delayed.

Parameters

  • command - Command to do soon


Examples

es_xsoon es_xmsg This will be done after all the rest.
es_msg This will be done first.
es_msg This will be done second.


Notes

  • Works great if you i.e want to unload a script from same script.


See also

blog comments powered by Disqus