Download

Implementing Player Teleportation

Hey there, I’m working on a game where the core mechanic is the player being able to teleport a short distance in a 3D environment.

I’ve tried having the player teleport to the location of a fired projectile, as well as teleporting a fixed amount of units in the direction the player is facing, and I have not been able to get either to work. Could anybody give me some guidance? I am still new to Unreal and am not very familiar with all the nodes and options in Blueprints. Any help would be appreciated!

Thanks in advance :slight_smile:

Teleporting a fixed amount of units in the direction the player is facing:

teleport.png

You, sir, are an absolute lifesaver! I will give this a shot when I get home. Just a couple of quick questions: What type of variable is Teleport Distance- a vector? And also, what type of nodes are the return values of Get Forward Vector and Get Actor Location connected to? I’ve never seen those before. Thanks again!

Teleport Distance is a float.
Get Forward Vector and Get Actor Location return a vector. So “x” will multiply a vector by a float and “+” will add 2 vectors.

It worked! Thanks again for your help :slight_smile: