I’m trying to teleport my player to a target point when they interact with a specific item. They’re supposed to be able to walk up to the interactable item, press the E key, and then teleport to the target point. It’s currently teleporting them as soon as they walk up to the item, ignoring any need for a key press. Help would be appreciated, as this has been driving me nuts for a while now.
There’s no need to cast, set boolean flags, implement input or evoke overlap events. The Press E to Do Something goes into the player BP, get overlapping actors, call a custom event to teleport. The only script that should be in the actor we see above should be the Teleport action:
The player can pipe in self reference into the call.
Ideally you would use an interface if the goal is to interact with more than just this specific item.