Destroying an Actor

I want to be able to destroy an actor when i touch/press another actor. But at the same time when i press the same actor it spawns a new actor.

Really appreciate if anyone can help.

Comments

  • JSprojectJSproject Member Posts: 730

    Create e.g. a boolean global attribute named KillActorX, set it to true via change attribute within your actor when you want to kill off the other actor, have your spawn after that change attribute. Make a rule within the actor you want to destroy that checks if KillActorX = true then change that global attribute back to false within that same rule and then destroy.

Sign In or Register to comment.