Spawning two players at diffrent locations
Options
Hi,
I want to spawn two players at two diffrent positions. Let me explain my scenario -
When both the players are joined in the room, game environment is spawned (which is also a network component). I want to spawn players in that environment. I was able to spawn the master player in the right position. But cannot spawn the second player properly. I am not getting hold of photonserializeview. Can anyone suggest me a solution? Any heading will be appreciated.
Thanks in advance
I want to spawn two players at two diffrent positions. Let me explain my scenario -
When both the players are joined in the room, game environment is spawned (which is also a network component). I want to spawn players in that environment. I was able to spawn the master player in the right position. But cannot spawn the second player properly. I am not getting hold of photonserializeview. Can anyone suggest me a solution? Any heading will be appreciated.
Thanks in advance
0
Best Answers
-
The MasterClient could send spawn position to the Client and the client wait until he get the information.Means MasterClient control's spawning1
-
1) No my environment is not networked Object.
2) Im using Raise Events1
Answers
-
The MasterClient could send spawn position to the Client and the client wait until he get the information.Means MasterClient control's spawning1
-
Here an example : https://youtu.be/mmO68vaksBQ1
-
Hi Oliver,
Thank you for your time. I have couple of questions.
1) Is your environment also a network object or local object?
2) How are you sending the spawn positions? Using OnSerializeView or just instantiate command?
Thanks in advance.0 -
1) No my environment is not networked Object.
2) Im using Raise Events1 -
Let me see what are Raise Events. Thank you for your help.1
-
Thanks Oliver, It worked.1