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

Trying to send command for object without authority?

$
0
0
Hi,

I am trying to use UNET on the latest version of Unity. I have Network Identity attached on player gameobject and have Local Player Authority checked.

I have a shooting script and a health attached on the same level as the Network Identity component. In shooting script, I have a command method which work perfectly on both client and host.

Code (CSharp):
  1. void Shoot(){
  2.     CmdEnableShootCommand(shootHit.point);
  3. }
  4.  
  5. [Command]
  6. public void CmdEnableShootCommand(Vector3 thisValue){...
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>