View Full Version : [C++] Respawn Player on Death

11-29-2014, 10:58 AM

is there a Funtion when a player is death in a area?
I want to respawn an player if he is death (killed by world / creatures) in an specific area.

11-29-2014, 12:49 PM
You could try making a script that will resurrect the player killed on these hooks:
So make a PlayerScript

The script might fail if the hooks are called before the player is actually killed.
For that you may either need to then make some core modding or make a timer with 0ms delay with BasicEvent for the player who died and resurrect him when the timed event fires. (fires on next update call)

And just check the areaIDs etc before doing anything ofc.

12-04-2014, 11:30 AM
that'd be a bad thing for PVP i have added a script for that before and it just broke the PVP .... you might want to teleport the player to a graveyard before resurecting