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

Network, AllBuffered work, All not work!

Discussion in 'Multiplayer' started by Xarro, Sep 21, 2009.

  1. Xarro

    Xarro

    Joined:
    Sep 9, 2009
    Posts:
    87
    Hi, i have a problem, i'm creating a fps multiplayer, but i dont know why, if i use RPCMode.AllBuffered, it work, but if i dont want to buffer the RPC, i use RPCMode.All, but it dont work (nothign appends)

    i explain:

    i have a function

    @RPC
    function fire() {
    ...
    }

    and when i press the mouse button, i send an RPC with networkView.RPC("fire"...);

    Ok, if i use RPC("fire",RPCMode.AllBuffered..) it works very well... but i dont want to buffer it, becaouse is only a fire call.. why buffer it?? then i use RPCMode.All... but nothing appens... i shoot but it dont shoot... (the RPC call is done also on the local pc) why?
     
  2. jmunozar

    jmunozar

    Joined:
    Jun 23, 2008
    Posts:
    1,091
    Ok, I dont believe this post belongs to scripting,

    I'm moving it to Multiplayer :).
     
  3. Xarro

    Xarro

    Joined:
    Sep 9, 2009
    Posts:
    87
    Ok thanks,but no helps?:(
     
  4. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    I never had any problems with the RPCModes (except for the fact that a server cant send to it's own networkplayer).

    You can rely on the fact that RPCMode.All is working, your error must be elsewhere.
     
  5. Xarro

    Xarro

    Joined:
    Sep 9, 2009
    Posts:
    87
    No beacouse i only change from the AllBuffered to All, and it dont work...but with allbuffered it works well... i dont want to buffer a shoot...


    EDIT: Uh... it work now... o_O