Ashasekayi (Talk | contribs) |
Ashasekayi (Talk | contribs) |
||
Line 2: | Line 2: | ||
==Fields== | ==Fields== | ||
− | {{ScriptFunction|string|Key|{ get; }|The key this message was sent with}} | + | {{ScriptFunction|string|Key|{ get; }|The key this message was sent with|5= |
+ | getKey = function(arguments)<br> | ||
+ | local sampleKey = "The message key is " .. arguments.<b>Key</b>;<br> | ||
+ | end<br><br>}} | ||
+ | |||
{{ScriptFunction|IDictionary(object,object)|Message|{ get; }|The message body which was sent|5= | {{ScriptFunction|IDictionary(object,object)|Message|{ get; }|The message body which was sent|5= | ||
gotAMessage = function(arguments)<br> | gotAMessage = function(arguments)<br> |
The SNetworkMessage class contains a network message sent by another script
The key this message was sent with
local sampleKey = "The message key is " .. arguments.Key;
The message body which was sent
local sampleMsg = "Got a message with the argument " .. arguments.Message["someArgument"];
end
|