When actor is killed

gplar

  • Posts: 1115
Just wondering:
If "When  actor is killed" is used in a scene behavior, will code referring to properties of the killed actor be valid? For example if I try to get an actor value from the actor.  Or is it already non-existent? If  so, I´ll work around it by saving values before it is killed.

jsblack

  • Posts: 117
I would actually like to know the answer to this. I've never used that "When Killed" event. I just use "Kill [Self]" and then put the rest of the code there. Lemme know what you discover.

gplar

  • Posts: 1115
After experimenting I agree with you in case of references to the involved actor. Stick code before the "kill self".
"When actor is killed" works when it triggers other events or updates score.

jsblack

  • Posts: 117
Interesting. Cheers.