• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Check if player's message is being whispered/talking/yelling

  • Thread starter Thread starter Xikini
  • Start date Start date
X

Xikini

Guest
0.3.7

I've looked into this before, and of course we know it's possible for the player to enable whispering/yelling using chat commands and/or pressing the respective buttons within the game window, but how can we check whether the players message being sent is whispered or yelled?

Specifically looking for 0.3.7, however any instance of TFS on how this could be done would be appreciated.

Thanks, and good luck,

Xikini

-- Edit

Simple example:
Player stands in front of a wall and whispers "open sesame", wall disappears for 10 seconds.
If player talks/yells "open sesame" nothing happens.

-- Edit 2
Maybe I'm just being a noob.
I can probably check it using this.
Code:
TALKTYPE_SAY
TALKTYPE_YELL
TALKTYPE_WHISPER
I'll have to test once I get home though.
 
Last edited by a moderator:
Back
Top