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

Cannot call function inside COMMAND function

$
0
0
Hello everyone,

Since two days, i'm completely stuck on my problem. I have a mage that have to cast a spell. My code work on the "client/host" side but not on the "client only" side. And if a create a "server only" and connect to it as a "client only" the code doesn't work too on the "client only" side. Here's my code, i'm probably missing something... :(

Here is the code of "FireMageSpellController.cs" (NetworkBehaviour)
Code (CSharp):
  1. void Update()
  2. {
  3. if (Input.GetButtonDown ("Spell1"))...
Cannot call function inside COMMAND function

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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