wiki.sine.space | sinespace

Scripting/SChatMessage

From wiki.sine.space
Revision as of 10:46, 19 December 2020 by Voidtech (Talk | contribs) (Creaated SChatMessage + defined all members + added simple examples)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)