Add NAC meshbound volume in scene
Create BP Characte, name as TeleportingCharacter
Set capsule size to 1 to 1, Disable gravity
In Character Movement component, set gravity scale to 0
Set camera, motioncontrollers, same as fly thruster
In event graph, create TeleportArc function, add 2 variables input:
Add ForwardForce local variable with value 500,
Tracechannel static set follow nodes (to predict where it goes):
To draw the trace arc and destroy previous after move:
Add SplineMeshes variable and Paths local varialble, continue the graph:
Continue after clear, change details on Add Spline Mesh Component”
Continue (connect Add output to Set Start and End)
Set if the teleport can go to destination, if not, the nearest can go:
Back to Predict Projectile node, connect as follow (add new variable vector teleportlocation)
Continue as follow:
Add a New Function called ClearArc (to remain the arc after teleported, don’t let it stay in previous spot):
Set graph used in Teleport Arc:
Go to Event Graph, keep Event tick node:
Add inputactiontriggerleft/right nodes, add following variables:
On Event tick node:
Duplicate on right hand, connect to sequence 1, change follow nodes:
Drag character BP in scene, set player to 0