How do you make another player look in the same direction as you?
I'm trying to make a multiplayer tour guide, where all the other players follow around a leader and look in the same direction as him when I press a certain key, but the rest of the time they're free to walk around on their own. I've got the location bit sorted - as in they follow the leader around - but the rotation bit is causing me some problems. On the server, the other players rotate in sync with the leader, but on the client side they don't, so they end up following the leader around backwards. Anyone know how to solve this? ,
asked Apr 10 '18 at 10:32 AM in Blueprint Scripting
1) Make sure all of your characters are replicated. 2) On tick check if pressed button. 3) If true, do "get all actors from class" -> for each loop -> set rotation. That should help.
Or when button pressed you can execute custom event for every player possess to your pawn. Sorry if it has grammar mistakes.
answered Apr 11 '18 at 10:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here