How to capture server messages sent from interactive console?
FinalStand
Member Posts: 87
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 )
}
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 )
}
0
Comments
Question: I can trigger realtime events by having my linux use nwservctl.sh script to send message, then capture message in server and script things to happen like killer penguins appaer ?