The problem seems easy enough to solve but nothing I tried worked. I have my player (PhysX rigid body) and my trigger area (PhysX collider with Trigger ticked). The trigger area works because of test message prints into the console log btw.
What I need is to make this trigger move the player to coordinates XYZ or to another entity. So far I tried: Set World Translation, Set Local Translation, Try Relative Move, Set Base Position, Set Parent Relative.
Nothing worked and I’m getting pretty frustrated Any help would be much appreciated
Set World Translation should work. Is this scriptcanvas graph on the trigger entity or the player? If it’s on the trigger the player entity must be the source of Set World Translation. If the graph is on the player entity the source can be self. If you attach your graph as a zip file, I’d take a look.
@petrocket, I ended up using the first method and it worked flawlessly after a few tweaks. Initially, there were few visual glitches like the player blinking fast while being teleported but I fixed that. Also when the player entered the trigger while not holding any of WASD 70% of the time the player got slingshotted out of the map by physics (idk how but it looked funny). So thanks a lot for your help!
@Pip, the video was very instructive but it was not what I needed but still thanks for the help.
I’m also attaching the 2 script canvases if someone would be interested in taking a look. The triggertest2 is the zone that will teleport you and the triggertest3 is the zone you are being teleported to. scriptcanvas.zip (20.9 KB)