Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Third Party (QUESTION) Syncing actions in Mirror

Discussion in 'Multiplayer' started by Simplisticated_Development, Sep 16, 2023.

  1. Simplisticated_Development

    Simplisticated_Development

    Joined:
    Jun 26, 2023
    Posts:
    61
    Hello all-

    So recently I have been working with unity mirror. It has been relatively simple tool, but I do have some unique instances that I am trying to figure out.

    1. My game is going to have a randomizer. (Random events happen in the game; it's a game of chaos. [the randomizer is a game object with a script attached.]) How do I sync it so the randomized events appear the same on different devices? Can I simply add a network identity to the random controller objects? How does this work?

    2. Sirens on vehicles. I would like to have synced sirens on emergency vehicles. (ie one player turns on a car siren and all other players can see/hear the siren as soon as it's turned on.) Again, is this just a net ID or something more complicated?

    Thanks for your replies in advance and Im sorry that the question is a very specific third-party one.
     
  2. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,326
    Please check out our documentation & examples.
    Sounds like you want [ClientRpc]s.
     
  3. Simplisticated_Development

    Simplisticated_Development

    Joined:
    Jun 26, 2023
    Posts:
    61
    Sorry, I'm not spending $80 on your packages :D !