i want a teleporting-portal (blueprint actor class consisted of a glowing plane and a trigger box) to show up at a specific location ~100 seconds after an event. but instead of that what happens is my first person character gets teleported to the location the portal was supposed to show up at. i am attaching the blueprint printscreen. i am not a programmer or too smart with blueprints so please have that in mind when answering. thank you so much! i can’t find anywhere how to do this, everywhere people want to spawn something on/from the main character actor
Hey there @stankela666! Is the class “Teleport U Old Alley” the portal actor class? If so, you might have the teleport hooked up to the BeginPlay node for it. Could we see your portal code if that’s the case?
Ahh yep, there’s your issue! So your overlap in your teleporter does not take into account what it overlaps with. So basically it’s immediately teleporting the player whenever it overlaps anything at all! One way to remedy this is to verify the player is the one overlapping with the teleporter.
So there’s 3 main ways to check what you’re overlapping. All of them use the “other actor” node. Here’s an image that shows off 3 ways:
You could cast to the player class and if it’s true:
Or you could Get the class and check it against the object’s class:
Or you could add tags to your character(s) and check those:
ohh thanks a lot! this worked! I had to also move away the trigger box from the plane too