Follow the tutorial and instead of putting the dying stuff in the handleevent method, put it under the doit method and then to activate it add something to check the distance to the other actor, similar to talking to them.
If this doesn't help, let me know and I'll post some code to illustrate what I mean.
