Author Topic: Function called when a client starts typing?  (Read 936 times)

What is the function that shows that a client is typing?
Like, makes their name appear in blue above the chat?
I used trace(1); but it's confusing.

serverCmdStartTalking(%client)

serverCmdStartTalking(%client)
Typing in /starttalking isn't doing anything
:c

It's probably automatically calling stopTalking when you press enter
Use commandtoserver('starttalking'); instead

What do you need it for? If you need a modified command, you'll have to package it. If you're looking to do something else, you probably need a different function altogether.

What do you need it for? If you need a modified command, you'll have to package it. If you're looking to do something else, you probably need a different function altogether.
I don't need it for anything specific, I was just curious how it worked because I was confused.

Well the server is running a serverCmdStart/StopTalking(%client); and when it's ran the server plays the start/stop talking animation thread.


Well the server is running a serverCmdStart/StopTalking(%client); and when it's ran the server plays the start/stop talking animation thread.

That's not quite right. serverCmdStartTalking sends out a signal to all the clients to put your name in blue in the top left part of the screen (using a clientCmd that I cant remember). serverCmdStopTalking does the same thing but makes it remove the name.

Its serverCmdMessageSent that makes the player play the talking animation.

serverCmdMessageSent makes the client play the talking animation for 50ms multiplied by the length of the message.

Well the server is running a serverCmdStart/StopTalking(%client); and when it's ran the server plays the start/stop talking animation thread.
Did you even test that or did that just come out of your imaginary blockhead dictionary?

It was me misremembering, no reason to be rude about it.

It was me misremembering, no reason to be rude about it.
Wasn't rude, but okay.