RTS update not working for client

Think I get it but still a little lost on when and where to code like this, but it works now.

WorkerAction script

    [Command]
    public void CmdSetGatheringT()
    {
        startGathering = true;
    }

WorkerCommandGiver script

worker.GetComponent<WorkerAction>().CmdSetGatheringT();

doing this for the other bools I have to set as well, thank you. :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms