Jump to content

Recommended Posts

When using SendModRPCToServer, is there any way to send extra args from the client to the server?

 

I noticed in networkclientrpc.lua's SendModRPCToServer() that it supports a variable number of arguments, which it passes to TheNet:SendModRPCToServer.

 

I see some built-in handlers in that same file that seem to support any number of custom arguments, but when I tried something like this http://imgur.com/mMkhbqS it didn't work (output was only "testing mctestington" -- varone + vartwo were empty).

 

 

  • Developer

@DJPaul, looks like there's a bug in the mod api in modutil.lua, where the extra arguments to SendModRPCToServer aren't being passed along to the global function. I'll get that patched up and it'll be out in the next update.

 

Just for my own clarity, your call to SendModRPCToServer is in modmain.lua correct?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...