Est RegEventBlock

From EventScripts Community Encyclopedia

Overview

Syntax: <event> <command to execute>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Description

Registers a pre-event with es_tools that will fire before the asigned event.

Parameters

  • event - The event that es_tools will watch for then fire the pre-event.
  • command to execute - The command to execute before the <event> is fired.

Examples

block load 
{ 
  es_set userid_temp 0 
  est_RegEventBlock player_death "es_doblock death/pre_death" 
}
 
block pre_death 
{ 
  est_GetEventInfo userid_temp userid 
  es_sexec server_var(userid_temp) say "IM DIEING!!" 
}
 
block unload 
{ 
   est_UnRegEventBlock player_death "es_doblock death/pre_death" 
}

Notes


See Also

blog comments powered by Disqus