How to switch-teleport with line trace?

Hello all,
I’m very new to blueprints and have been trying to figure out how to do a switch teleport based on line trace hit.
In other words, I want my TPS character to trade positions with the actor hit by line trace.
Can someone provide some insights as to how this can be done? I’m using the third person template.

This is what I have so far; I’m attempting to first teleport myself to the target’s position and somehow teleport that target back to my previous position, but that doesn’t seem like the best way.

on hit save your char current location to a variable. Then move it to the hit ACTOR (looks like you are doing component, maybe that’s intended). After that set the hit actor location to the saved var vector.

Save actors transform before teleportation, then after delay teleport it back to the saved position.

Many thanks! i got it to work

Many thanks!! got it working :slight_smile:

It is better to mark your question as resolved, if you have no problems any more. Choose answer.