SChatMessage

Index

Properties Index

Attribute Name

uint SenderID get

string Sender get

string Channel get

string Message get

Properties

SenderID

uint SenderID get

ID of the sender of the message

function oc(chatm)
  Space.Log(chatm.SenderID)
end
Space.Network.Chat.OnChat(oc)
--this script processes every new chat message and makes a UIText display the Sender's ID
uiText = Space.Host.GetReference("text").UIText --Add this Text object as reference in Scripting Runtime

OnChatFunction = function(SChatMessage)
uiText.Text = SChatMessage.SenderID 
end

Space.Network.Chat.OnChat(OnChatFunction) 

Sender

string Sender get

Name of the sender of the message

Channel

string Channel get

Name of the channel

Message

string Message get

The contents of the chat message

Last updated

Was this helpful?