Help with damage on collision/overlap

Hello, Jegunainen! Welcome to the Unreal Engine Forum.

I have a question for you. How long have you been using Unreal Engine? I’m asking so that I can provide you with better assistance.

To address this, I recommend conducting a test using the following steps:

  1. Create a blueprint for your cactus, specifically an actor type. Within the blueprint, add the cactus mesh. In the top left corner, click on “Add Component” and search for “collision.” Choose the collision type that best suits your needs, whether it’s box or sphere collision.

  2. Open the event graph for your cactus mesh and add an “On Component Begin Overlap” node from the recently created collision.

Following these steps, refer to the screenshot I’ve taken below. The “orange” portion should be created within your character blueprint.

Please let me know if you have any questions. If you manage to replicate the setup shown in the screenshot, you should achieve the desired outcome. Feel free to add more elaborate animations or attack reactions later to enhance the overall experience.

PS: The reason for the “Hammer” float is because I took it from my project blueprint. As for the “not equal” part, I set it to “reference to self” in your case to ensure that the cactus doesn’t inflict damage upon itself.