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

Best Answers

  • S_Oliver
    S_Oliver ✭✭✭
    Answer ✓
    Options
    The MasterClient could send spawn position to the Client and the client wait until he get the information.Means MasterClient control's spawning
  • S_Oliver
    S_Oliver ✭✭✭
    Answer ✓
    Options
    1) No my environment is not networked Object.
    2) Im using Raise Events

Answers

  • S_Oliver
    S_Oliver ✭✭✭
    Answer ✓
    Options
    The MasterClient could send spawn position to the Client and the client wait until he get the information.Means MasterClient control's spawning
  • S_Oliver
    S_Oliver ✭✭✭
    Options
    Here an example : https://youtu.be/mmO68vaksBQ
  • hV4
    Options
    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.
  • S_Oliver
    S_Oliver ✭✭✭
    Answer ✓
    Options
    1) No my environment is not networked Object.
    2) Im using Raise Events
  • hV4
    Options
    Let me see what are Raise Events. Thank you for your help.
  • hV4
    Options
    Thanks Oliver, It worked.