Problem and do not know how to solve this!
It has to do with the rotationSync as I am able to do a [command] function with a print, that works. I do not understand why i am able to do a print without property but not the "rotationSync"?
Script attached to player. I update the rotationSync when moving an object.
Here is the components that generate´s the warning:
Trying to send command for object without authority.
It has to do with the rotationSync as I am able to do a [command] function with a print, that works. I do not understand why i am able to do a print without property but not the "rotationSync"?
Script attached to player. I update the rotationSync when moving an object.
Here is the components that generate´s the warning:
Code (CSharp):
- [SyncVar(hook = "Shoot")]
- public float rotationSync;
- ...
- void Shoot (float myFl) {
- Cmd_RotationSync...