Is this documentation accurate?

Ewanuk86
Ewanuk86
edited October 15 in Fusion

At the bottom of this page https://doc.photonengine.com/en-us/fusion/current/manual/network-input (As of the time of this post), the documentation says:


---

The call to GetInput() will return false when any of the following happens:

  • the client does not have State Authority;
  • the client does not have Input Authority;
  • the requested type of input does not exist in the simulation.


Shouldn't it be:

The client does not have state OR input authority

The requested type of input does not exist in the simulation.

Answers

  • Tobias
    Tobias admin
    edited October 18

    To me it sounds ok and correct. To me, the key is "when any of the following happens".

  • But as written, this documentation implies GetInput() will return false if I had State Authority but not Input Authority.


    To me, it reads like:

    if (!StateAuthority || !InputAuthority || !TypeExists) { return false; }

  • After re-reading it a few times, I can see what you mean. Probably best to clarify, yes.

    Thanks for the heads up. Will be updated next turn.