wiki.sine.space | sinespace

Difference between revisions of "Scripting/SChatMessage"

From wiki.sine.space
Jump to: navigation, search
(Creaated SChatMessage + defined all members + added simple examples)
(No difference)

Revision as of 10:46, 19 December 2020

Public Attributes

Channel

string Channel {}

Name of the channel

function oc(chatm)
  Space.Log(chatm.Channel)
end
Space.Network.Chat.OnChat(oc)


Message

string Message {}

The contents of the chat message

function oc(chatm)
  Space.Log(chatm.Message)
end
Space.Network.Chat.OnChat(oc)


Sender

string Sender {}

Name of the sender of the message

function oc(chatm)
  Space.Log(chatm.Sender)
end
Space.Network.Chat.OnChat(oc)


SenderID

uint SenderID {}

ID of the sender of the message

function oc(chatm)
  Space.Log(chatm.SenderID)
end
Space.Network.Chat.OnChat(oc)