Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Third Party Game of Tag with pun2... Help!

Discussion in 'Multiplayer' started by yox3, Apr 15, 2021.

  1. yox3

    yox3

    Joined:
    Nov 18, 2020
    Posts:
    8
    I'm making a game where you have to tag the other players... (The game tag)

    When I spawn all the players in.. I want one random player in the room to be tagged
    (I switch the player's tag to "tagged")

    Can someone help? I'm using photon...
    Have a nice day!
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,062
    This is very basic and hard to really help.
    The Master Client can be used to make decisions. Let it come up with a random number and select the player (e.g. by actorNumber) who is close to that number. Send an RPC to tag this Player.

    If the above doesn't make sense, have a look at the docs for PUN 2. You might want to read and code-along the Basics Tutorial.
     
  3. yox3

    yox3

    Joined:
    Nov 18, 2020
    Posts:
    8
    Thank You!

    I will try it out!