Client disconnects from room when firing beams - PUN Basics Tutorial

Hey all,

I just started learning Photon today. I'm doing the PUN Basics Tutorial. Completed through part 8.

Testing a single client. Running around works fine, but when I turn on the eye beams (Left Click) for around 5 seconds or spam clicking the left click button turning them off and on repeatedly, the client disconnects from the room after 4 - 5 seconds. With message OperationResponse 254: ReturnCode: 0.

Am I missing something? Using Unity 5.6.2f1

Best Answer

  • FootStepsFootSteps
    Accepted Answer
    Scratch that. Apparently the eye beam was colliding with the player that owned it. Hurting itself / making it leave game after a duration.

    Moved collider to parent beam game object, to check against beam gameobject we are toggling on and off when trigger events occur.

Answers

  • FootStepsFootSteps
    Accepted Answer
    Scratch that. Apparently the eye beam was colliding with the player that owned it. Hurting itself / making it leave game after a duration.

    Moved collider to parent beam game object, to check against beam gameobject we are toggling on and off when trigger events occur.
Sign In or Register to comment.