generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: RemoteEvents / RemoteFunctions

Previous Thread :: Next Thread 
ukwarrior6 is not online. ukwarrior6
Joined: 06 Sep 2009
Total Posts: 485
28 Jan 2014 03:19 PM
This is sort-of a re-post, but more general in that these seem to be some kind of top secret object, in that, it's difficult to find concrete info on them. And if you refer me to the wiki, I shall smite thee.

Anyway, can RemoteFunctions take more than one argument? Because mine is rather bluntly refusing to do so.
Report Abuse
reptoslicerguy is not online. reptoslicerguy
Joined: 01 Jan 2010
Total Posts: 2098
28 Jan 2014 03:42 PM
http://wiki.roblox.com/index.php/Remotefunction
Report Abuse
ukwarrior6 is not online. ukwarrior6
Joined: 06 Sep 2009
Total Posts: 485
29 Jan 2014 11:45 AM
I thank you very kindly for fully reading my post. Now prepare to be smite-ed.
Report Abuse
As8D is online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
29 Jan 2014 12:20 PM
1) Yes, they do take more than 1 argument (depending on client or server? For invoking client, ya needz to supply a Player, or invoke on all clientz)

2) Why not do some tests? That's a way you can achieve results faster than waiting for response, depending on the situation. And it's not like something awful will happen if you test it.

3) I have to post my ziggy here. Good day. -As
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
29 Jan 2014 01:19 PM
There is a wiki for this. How can you not use it?
Report Abuse
Evra is not online. Evra
Joined: 05 Oct 2008
Total Posts: 61
29 Jan 2014 01:52 PM
They take more than one argument exactly as you would expect, by passing more than one argument to InvokeX. I don't know why they wouldn't be working for you.
Report Abuse
ukwarrior6 is not online. ukwarrior6
Joined: 06 Sep 2009
Total Posts: 485
29 Jan 2014 03:37 PM
Ahhh, I'm still no sure why they weren't working, they would only take the first argument, but oh well, it seems to be working now, probably my own stupidity!
Report Abuse
duckwit is not online. duckwit
Joined: 08 Aug 2008
Total Posts: 1310
29 Jan 2014 03:46 PM
The wiki page (unlike every other time I've referenced the documentation) wasn't incredibly insightful for me either.

Trick is, if you are invoking the server FROM the client, the first argument to the function will be the player that called it.
Off the top of the ol' head it'd be like:
function yourRemoteFunction.OnClientInvoke(player,argumentOne,argumentTwo,etc...)
...
Jus' a little tip for ye.
Report Abuse
As8D is online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
30 Jan 2014 03:33 PM
^

- Invoke single client from server: Requires player
- Invoke server from client: Do not require player
- Invoke all clients from server: Do not require player
- On invoking client: First argument is player
- On invoking server: Do not pass any players
- As, good, we're done here. Next 5-button.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image