Destroy actor command don't work

So I tried to prepare a simple health pick-up system. But the problem is after actor gets inside of the trigger box nothing happens. Normally it should have destroyed and added some health to my character. Can anyone explain the reason? Thank you.

Two main reasons the setup you have there wont work are:

  1. The cast is not working - try putting a print on the fail

  2. You have the collision setup wrong on the box - can you show that?

1-) I didn’t really understand this one.
2-) Here is my setup.

It looks ok. I think maybe the ‘cast’ node you have is failing, put a print string on the fail to find out:

307697-cast.jpg

Besides doing what ClockworkOcean said, there is also the problem that both the emitter and destroy actor will only be called if the player’s health is greater than 1 (shouldn’t it be the other way around?).

So, check your branches.

Also, consider using the clamp node, to limit the health to [0,1].

I did it but nothing happened. What should I do now?

By the way thanks for your help anyway. Even if it doesn’t gonna work it is not the end of the world for me, I will complete my game anyway.

It worked after I changed the health value as 1.1. Thanks.