Search Unity

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.