Est SetEventInfo

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_hurt "es_doblock instakill/prep_hurt" 
}
 
block pre_hurt
{ 
  est_GetEventInfo userid_temp userid 
  es est_health server_var(userid_temp) - 99
  est_SetEventInfo health 1 // lets other addons know the true health 
}
 
block unload 
{ 
   est_UnRegEventBlock player_hurt "es_doblock instakill/prep_hurt" 
}

Notes


See Also

Est_GetEventInfo

blog comments powered by Disqus