Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

No invoke command functionality?

Discussion in 'Multiplayer' started by trudeaudm, Apr 9, 2017.

  1. trudeaudm

    trudeaudm

    Joined:
    Apr 17, 2013
    Posts:
    116
    Is it intentional that an invoked command runs differently from a normally called command?

    Invoke("CmdDoStuff", 0.5f);

    Either does not run on the server or it runs without the proper authority.

    From calling,

    CmdDoStuff();

    Directly.

    My work around was to do:

    Invoke("StartDoCmd", 0.5f);

    Void StartDoCmd(){
    CmdDoStuff();
    }

    It just seems really odd to have to do it in a roundabout way like this.