Wrong example in documentation?

Hi,

I'm following along the documentation for BOLT at https://doc.photonengine.com/en-us/bolt/current/getting-started/bolt-104-objects-and-arrays.

According to the documentation, each player should be able to switch weapons when invoking a KeyCode in SimulateOwner(). However, to my understanding, SimulateOwner is only executed on the Owner (the host in this case). Therefore, the code will only work on the hosting computer.

I'm trying to figure out how BOLT works, but the docs are not up to par.
As a client, should I create a command to request a state change? If so, how?



Let's say I have a PlayerState which holds a Color property. How do I go about requesting a color change, approve and dispatch it to other clients? It definitely doesn't work as stated in the tutorial.

Thanks!

Best Answer

Answers