Download

Sharing a variable across Blueprints

Hi, So I’ve been trying to work out the easiest way to share a variable with one or more blueprints. The idea is I want to teleport my character pawn to the location of another pawn and set the same rotation, and to do that I will obviously need to get the location/rotation from the other pawn and share it with my character pawn , I think?

Any ideas how to do that?

Thanks.

if you check my respawn wiki, you will know respawn is handled by GameMode, so similarly, teleport should also handled by GameMode.
In GameMode it would be easier to get all Pawns’ position/rotation and then when a legit teleport request is being made, you can then let server teleport a pawn/character to a desire location.