Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Trying to send command for object without authority.

$
0
0
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:

Code (CSharp):
  1. [SyncVar(hook = "Shoot")]
  2. public float rotationSync;
  3.  
  4.  
  5. ...
  6.  
  7.  
  8. void Shoot (float myFl) {
  9.         Cmd_RotationSync...
Trying to send command for object without authority.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>