What am I doing wrong with this pick up? It doesn't disappear nor is it giving me health.




You are calling this function which does nothing. (See the target above your function says Pickup_M)

Also you are gonna have a real bad headache down the road with the design of your codebase, learn overriding and interfaces, you don’t really separate functions for different classes which does the same thing.

If the Pickup isn’t getting destroyed Check the overlap and collisions by adding print strings.
Your cast might be failing.

appreciate the help. I’m new to all this and a student at SNHU. I was following one of their tutorial videos for my project. https://youtu.be/xIZCMXyKoFw?si=Wkun7SCsgcpsE99x Following what the professor was doing and his worked fine for some reason.

Okay so I watched the video now I understand that you are overriding the Add Bonus function inside Health pickup But I have to say something; it’s very poorly planned video I do feel sorry for their students.

So Here are the things you can check:

  • Add Print String in Pickup_M’s Add Bonus event to see if it fires when you overlap.
  • Check the Box Collision that it does generate events on overlap and it overlaps Pawn Object types.

Also A Tip, In the video the instructor is modifying the world location of static mesh component inside a timeline to adjust it’s Z value, this is very wrong as it will set the static mesh to 0,0 on X and Y world coordinates.

1 Like