|
| 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 |
|
|
|
| 28 Jan 2014 03:42 PM |
| http://wiki.roblox.com/index.php/Remotefunction |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 29 Jan 2014 01:19 PM |
| There is a wiki for this. How can you not use it? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|