Is this documentation accurate?
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
-
To me it sounds ok and correct. To me, the key is "when any of the following happens".
0 -
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; }
0 -
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.
0