So I’m trying to make the player touch an item on the map, so he unlocks an ability.
I made this but for some reason it’s not working, any ideas?
I might be able to assume some things but more info would help.
I assume this even is being called in your character blueprint (and not the item).
I assume the player is given the “jetpack” tag somewhere else in your blueprint. I don’t think the tag is being used correctly. There is a check to see if the tag exists and if it does give them a jetpack… Wouldn’t it make more sense to get the jetpack if they don’t have it to begin with?
I never use the generic overlap event because I don’t know what’s being overlapped. It’s safer to use one of the components, such as the capsule component begin overlap event in place of.
set up a print as the first thing your overlap event does (before the tag branch and everything else), to make sure the object even registers an overlap. if it isn’t triggering, chances are you forgot to setup the collision tab properly, such as not enabling “generate overlap events” for both objects.
If it does trigger, you need to doublecheck that the object has the proper tag
The jetpack prop has a jetpack tag, not the player.
I’ll try with another overlap thing…
I missed this, but reviewing the previous post, I understand that now, thank you.
Print String is a good idea to see if it is even firing. I hope that using a more specific overlap event fixes the problem.
Whatever is overlapping, but sure the collision is set to “Query” or else full collision (query and physics). And as @Capsu1 states, be sure “Generate Overlap Events” is checked on and that you’re not turning it off in code anywhere. You may also want to check the Jetpack actor and ensure it can also overlap and has query collision.