This is an old revision of the document!
This is done with the 2 following functions:
void RegisterEvent(string sEvent, string sScript); void UnregisterEvent(string sEvent, string sScript);
For example, the following line:
RegisterEvent("pc_ev_death", "myerf_ev_pcdeath")
… will cause the myerf_ev_pcdeath script to be called before and every time that the pc_ev_death is about to be executed.
The parameters can be accessed the same way as the original script and the caller will be the same.