| Blockland Forums > Modification Help |
| Client Team Chat |
| (1/4) > >> |
| jes00:
What is the client sided function for team chat and all it's vars? |
| Superb:
Trace(1); is your best friend. I'm seriously going to make a "How to use trace video" for everyone.. |
| Port:
I don't have the arguments at the moment, but the specific functions are NMH_Type::send, TeamChat and commandToServer. |
| Superb:
--- Quote from: Port on January 06, 2012, 10:47:55 AM ---I don't have the arguments at the moment, but the specific functions are NMH_Type::send, TeamChat and commandToServer. --- End quote --- I think he meant when another person types in team chat, to intercept the data, which requires a package. |
| Ipquarx:
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. |
| Navigation |
| Message Index |
| Next page |