Can't get Set Actor Location to Move Pawn

Hi there,

I am trying to teleport a pawn when it contacts a portal using Set Actor Location. The collision triggers and it looks like the correct parameters are being passed and the function returns ‘true’, but the pawn stays in place.

I have looked around the forums and online for solutions, but none of them seem to work. I have tried using Set World Location instead, the pawn’s components are set to ‘Moveable’, I have tried enabling and disabling the ‘Teleport’ flag, and I have tried calling the pawn globally. No errors are being triggered as far as I can see.

This feels like it should not be complicated and I am probably missing something glaringly obvious, but I have been trying for hours and nothing seems to work. Thanks for the help in advance.

Portal Blueprint:

Debugging Prints:
UE5_Portal2

Pawn Scene Root (The pawn Mesh Component is also set to ‘Moveable’):

You also tried, instead of setting actor location, to set actor transform? And have you tried to untick Teleport Bool on Set Actor Location?

Is anything teleporting / changing location at all? Or is something happening? Even things that aren’t supposed to happen.

Thanks for the reply. I just tried Set Actor Transform as you suggested, but it unfortunately didn’t work either. I have tried with Teleport off, but nothing happens as well. I moved the teleport checkpoint to somewhere I could see it on screen if anything did happen, but nothing appears at all, not even for a frame. I also opened the Output Log, but no errors appear and print string functions return the proper values.

Did you forget to do this in your pawn first?

this->GetController()->StopMovement();

Or

2 Likes