Question by
ethanisdaboss123 · Dec 21, 2020 at 01:46 AM ·
networking
network functions work from host, but not from remote client
I'm working on trying to get objects to instasiate over the network I've tried using Instaciate NetworkServer.spawn NetworkBehavior.Instaciate all within a command function with a network behavior. I have the functions script attached to the player which has a network identity. I've worked it down to use debug.log to see if I can get communication from remote client to server.
private void Update()
{
if (Input.GetKeyDown("p"))
{
Cmdseverinput();
}
}
//output to server
[Command]
void Cmdseverinput()
{
Debug.Log("works");
}
Comment
anyways my problem is I can't get the remote client to communicate with the sever but the serer communicates with the client