Announcement

Collapse
No announcement yet.

Works on the server but not in local

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Works on the server but not in local

    Hey guys, so i'm quite new to the multiplayer blueprint coding so it might be a newbie mistake, but my problem is this one :
    I'm trying to make the character look at the cursor in the top down view mode. At all time and not only when clicking, it's working but only in the other window (another client window), so i feel like it's working on the server but not locally, is this possible O_o ? What am i doing wrong ?

    #2
    Replication can be really tricky, you're not at your last WTF? time I guess (neither I am).

    I had a similar problem a week or two ago.
    My solution was:
    • build the logic for rotation like in a single player.
    • EventTick >> If hasAuthority >>GetCurrentRotation >> NetMulticast(Unreliable) SetActorRotation(CurrentRotation).
    It works perfect.
    Be carefull though, working behind a tick node, you could have severe performance issue if you got hundred of those guys...
    | Home | ShootOut (WIP) |

    Comment


      #3
      thank you for your answer
      Now with your solution it works "locally" but not on the server haha, i can't see him rotate in the other screen but it works when he moves ^^ so my two screen clients aren't sync i suppose.
      And thanks for the advice, really appreciated

      Comment

      Working...
      X