e2 docs chat - wiremod/wire GitHub Wiki
Chat
Activate)
runOnChat(If set to 0, the chip will no longer run on chat events, otherwise it makes this chip execute when someone chats. Only needs to be called once, not in every execution (3 ops)
= chatClk()
Returns 1 if the chip is being executed because of a chat event. Returns 0 otherwise (3 ops)
= chatClk(
Ply)
Returns 1 if the chip is being executed because of a chat event by player E. Returns 0 otherwise (3 ops)
Hide)
hideChat(Hides the chat messages written by E2 owner (3 ops)
= lastSpoke()
Returns the last player to speak (3 ops)
= lastSaid()
Returns the last message in the chat log (3 ops)
= lastSaidWhen()
Returns the time the last message was sent (3 ops)
= lastSaidTeam()
Returns 1 if the last message was sent in the team chat, 0 otherwise (3 ops)
=
:lastSaid()
Returns what the player E last said (3 ops)
=
:lastSaidWhen()
Returns when the given player last said something (3 ops)
=
:lastSaidTeam()
Returns 1 if the last message was sent in the team chat, 0 otherwise (3 ops)