Hello,
I’ve been working on a teleport system for a 3D rendered side scroller.
The teleporting ability works as follows :
- Teleports either right or left a set distance depending on input.
- If linetrace collides with anything before reaching max distance it will teleport the pawn just before the obstacle.
- Linetrace ignores other pawns’s collisions. Making it possible to teleport through another pawn.
The issue I have is that when I try to teleport to the exact location a pawn is already standing it simply doesn’t run the teleport script. If I tell linetrace to stop ignoring other pawns it will stop the teleporting right before the other panws when teleporting.
What I would like is a system similar to League Of Legends’s flashing system (when flashing into a wall that would normally be too large for you to go through with the normal flash range), where the teleport range is extended by a defined value until you have reached the other side of the obstacle.
Kind of what it automatically does when you try to respawn somewhere but another pawn is already on this location.