User Tools

Site Tools


building:scripts:events:script_based

This is an old revision of the document!


Script Based Events

Registering / Unregistering a Script Based Event

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.

building/scripts/events/script_based.1552262830.txt.gz · Last modified: 2019/03/11 00:07 by Mavrixio

phpBB Appliance - Powered by TurnKey Linux