So im trying to use the teleport node though a widget to teleport my players to other floors of a building like an elevator. It is a server run game and from the players perspective when they teleport they end up on the correct floor. However all other players see them still on the ground floor and if the player jumps while on a floor other than 1 they are instantly teleported to floor 1. Any suggestions or help is appreciated.
Is teleport being called directly in the widget blueprint? Might need to make a teleport event on the character or controller, set that to run on the server, and have the widget call the new event.
If the teleport is already on the char or controller and is running on server, you might just need to make the vector used by teleport into a variable set to replicate?
So its not on the character or controller I will upload images of the BP in a few. Its on the widget on button press it calls the teleport function from the “elevator” itself. Hopefully the BP makes more sense than my explanation.
The widget calling a function on elevator might be where the issue is.
Networking stuff is kind of over my head, but just messing around with it, I couldn’t get a widget-to-elevator-to-character interaction to replicate either.
But making the widget call an event on the owning player pawn, which in turn calls the elevator seems to work. At least it did in the emulated server mode in PIE.
First bit is from widget, second is dummy event on character, third is on the elevator actor.
Probably an easier way to do this, but, yea.