Message Callbacks

edited December 2009 in Mods and Customization
Possibly a silly question:

Are message callbacks purely called client-side? (Can I only write addmessagecallback("KillAllHumans", KillAllHumans); as a client-side call?)

I'm thinking that it is, but I don't know for sure.

EDIT: Also, how exactly does the clientCmd for client functions work?


  • Yes. Message callback are called by the clientCmdServerMessage function, so servers never use them.

    When the server calls commandToClient(clientID, "function", blah...), that client calls the function clientCmdFunction(blah...)
    Same for commandToServer and all of the serverCmd... functions, except without the need for the clientID parameter.
Sign In or Register to comment.