Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

How to capture server messages sent from interactive console?

In linux you can do 'say something' in the interactive console and it gets broadcast to all players.

It goes to combat log like :

[Server]: something


In the module scripting, I'd like to capture this message and "do" something with it. How could I capture it? i think I want to use SetListeningPattern, but don't know where to put that.


for example: `say gamemode 1`

if ( "matches game mode" ) {
gametype = parse words
SetLocalInt(GetModule(), "GameMode", gametype )

}


Comments

Sign In or Register to comment.