I’m getting a “Trying to send Command for Object without Authority.” warning when trying to call a [Command] Method from a script on the Player. It’s the same on the host as on clients.
public void OnSubmit()
{
answer = GameObject.Find("Input Handler").GetComponent<InputHandler>().GetAnswer();
Debug.Log("has Authority: " + hasAuthority);
CmdSetAnswer(answer, 42, localPlayerId);
}
The Debug.Log outputs “has Authority: False”.
I read through a lot of threads but most of the time the problem is calling a command from another GameObject than the Player but for me that’s not the case.
Appreciating any and every help
EDIT: isLocalPlayer is also false. But the script is definitley on my Player.
EDIT2: Here are 2 Screenshot… I seriously don’t know what I’m doing wrong… SC1 and SC2.