SendServerData
Jump to navigation
Jump to search
This function was added in v1.6 beta and will not work on previous versions.
Description:
This will send data( results in calling onClientScriptData of squirrel-server )
Parameters:
(data)
data: A blob which is written with one or more of WriteByte, WriteInt, WriteFloat and WriteString.
Return Values:
true on success, false on failure( instead of blob, some other instance of a class is passed )
Example
Input npcscript
local b=blob(); WriteInt(b, 1000); WriteByte(b, 100); WriteFloat(b, 356.456); WriteString(b, "Hello"); SendServerData(b);
Output from server
Related Functions
The following functions may be helpful as they relate to this function in one way or another.