Skip to content
nfullersl edited this page Nov 25, 2015 · 1 revision

Modding Tutorial: Chat Messages

Send chat to a specific player

somePlayer.SendMessage("hello player!")

For a message that fades quicker (1 second here):

somePlayer.SendMessage("hello for 1 second", 1.0f)

Send chat to everyone (server message)

ChatServer.Obj.SendServerMessage("hello from the server")

Time may also be specified like the player-specific version.

Formatting

See Unity Docs Here