fu_x_respawn

Default respawn scripts.

To override with your personal respawn system, you must override the default scripts with fw_event.

One way is to override the scripts in EVENT_REGISTER in your user unit:


case EVENT_REGISTER: SetEventScript(oModule, EVENT_SCRIPT_MODULE_ON_PLAYER_DEATH, SCRIPT_FW_EVENT); SetEventScript(oModule, EVENT_SCRIPT_MODULE_ON_PLAYER_DYING, SCRIPT_FW_EVENT); SetEventScript(oModule, EVENT_SCRIPT_MODULE_ON_RESPAWN_BUTTON_PRESSED, SCRIPT_FW_EVENT);

Another way is to remove this file, and set fw_event as the script for all three events: OnPlayerDeath, OnPlayerDying, OnPlayerRespawn.