#INCLUDE Base
INIT
USING Base
CHARACTER:__Me
EXTERN INT:%Active = 1
EVENTS
EVENT Init
ON
OnInit()
ACTIONS
IF "c1&c2"
CharacterIsDead(__Me)
IsEqual(%Active,1)
THEN
CharacterResurrect(__Me)
ENDIF
EVENT UponDying
ON
OnDie(__Me,_,_,_)
ACTIONS
IF "c1"
IsEqual(%Active,1)
THEN
CharacterEvent(__Me,"Resurrect")
ENDIF