Blockland Forums > Modification Help
Client Team Chat
<< < (3/4) > >>
jes00:

--- Quote from: Ipquarx on January 07, 2012, 08:18:08 PM ---Use onChatMessage.
It can be used to easily edit, get, and use the message, and only has 3 variables. You don't even need to package it, or parent it!
No seriously, don't package or parent it. Seriously don't.
Here's a snippet of code:

--- Code: ---function onChatMessage(%message, %voice, %pitch)
{
newChatHud_addLine(%message);
//dostuff here
}

--- End code ---
Or if you want to modify the message, you can edit %message before the newChatHud_blah line.

--- End quote ---
How is that detecting a team chat message?
Ipquarx:
It detects all chatting.
Unless of course messageClient is used, in which case there is a  function called onServerMessage.

EDIT: I know there are specific functions for each seperate chat though, i'm getting on the computer soon, i'll check it out.
jes00:

--- Quote from: Ipquarx on January 08, 2012, 05:19:58 PM ---It detects all chatting.
Unless of course messageClient is used, in which case there is a  function called onServerMessage.

EDIT: I know there are specific functions for each seperate chat though, i'm getting on the computer soon, i'll check it out.

--- End quote ---
I want the specific function for team chat(client sided).
Ipquarx:
Okay, I looked it up using trace and team chat is just regular chat with different colours.
There is absolutely no specific team chat function.
use onChatMessage or you can use clientCmdChatMessage (i think that's the name of it, if i'm wrong correct me.)
jes00:

--- Quote from: Ipquarx on January 09, 2012, 10:28:13 AM ---Okay, I looked it up using trace and team chat is just regular chat with different colours.
There is absolutely no specific team chat function.
use onChatMessage or you can use clientCmdChatMessage (i think that's the name of it, if i'm wrong correct me.)

--- End quote ---
Is there any(client sided) way to detect team chat?
Navigation
Message Index
Next page
Previous page

Go to full version