Est GetEventInfo

From EventScripts Community Encyclopedia

Overview

Syntax: <variable> <event_var>
Note: Command parameters are described inside the < and > characters.

Description

Gets the <event> event_var's before it's fired, in the pre-event.

Parameters

  • variable - The variable to which to save the <event_var>
  • event_var - The event variable that will be saved to <variable> from your event.

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