chvetsov mod

with best regards. ExitGames Staff

About

Username
chvetsov
Joined
Visits
927
Last Active
Roles
Registered, Moderator
Points
214
Badges
17

Activity

  • chvetsov earned the 25 Answers badge.
    Looks like you’re starting to make a name for yourself as someone who knows the score!
    July 27
  • wasifk308
    please help me
    Here when i create a room from first person , room is created and when second person comes it joins the room, but when third person comes it creates new room ,while it should join the same room because the room have maxplayer =10.
    As there is joinrandomroom() function , So , i have tested multiple times but still third person creates new room.
    void Start () {
    competePlayeScale = true;
    PhotonNetwork.JoinRandomRoom();
    }
    void OnPhotonRandomJoinFailed() {
    PhotonNetwork.CreateRoom (null, new RoomOptions{ MaxPlayers = 10 }, null);
    }
    void OnJoinedRoom() {
    if (PhotonNetwork.playerList.Length == 1) {MyPlayer = (GameObject)PhotonNetwork.Instantiate (prefabSamurai.name, spawnPoint[0],Quaternion.identity, 0);
    }
    if (PhotonNetwork.playerList.Length == 2) {
    MyPlayer = (GameObject)PhotonNetwork.Instantiate (prefabSamurai.name, spawnPoint[1], Quaternion.identity, 0);
    }
    if (PhotonNetwork.playerList.Length == 3
    {
    MyPlayer = (GameObject)PhotonNetwork.Instantiate (prefabSamurai.name, spawnP
    July 13
  • wasifk308
    please help me
    Here when i create a room from first person , room is created and when second person comes it joins the room, but when third person comes it creates new room ,while it should join the same room because the room have maxplayer =10.
    As there is joinrandomroom() function , So , i have tested multiple times but still third person creates new room.
    void Start () {
    competePlayeScale = true;
    PhotonNetwork.JoinRandomRoom();
    }
    void OnPhotonRandomJoinFailed() {
    PhotonNetwork.CreateRoom (null, new RoomOptions{ MaxPlayers = 10 }, null);
    }
    void OnJoinedRoom() {
    if (PhotonNetwork.playerList.Length == 1) {MyPlayer = (GameObject)PhotonNetwork.Instantiate (prefabSamurai.name, spawnPoint[0],Quaternion.identity, 0);
    }
    if (PhotonNetwork.playerList.Length == 2) {
    MyPlayer = (GameObject)PhotonNetwork.Instantiate (prefabSamurai.name, spawnPoint[1], Quaternion.identity, 0);
    }
    if (PhotonNetwork.playerList.Length == 3
    {
    MyPlayer = (GameObject)PhotonNetwork.Instantiate (prefabSamurai.name, spawnP
    July 13