TriggerRegisterPlayerChatEvent
- Parameters
-
whichTrigger trigger
The trigger to which register the event.
whichPlayer player
The player on which chat-messages to react to.
chatMessageToDetect string
The message to react to. Pass
""
to react to any message.exactMatchOnly boolean
true
if only the exact string inchatMessageToDetect
should fire the trigger.false
will trigger if thechatMessageToDetect
appears anywhere in the entered string. - comment
-
Registers a chat event.
- note
-
The callback event will not have the
EVENT_PLAYER_CHAT
eventid, insteadConvertPlayerEvent(96)
which has no attached global in common.j. - note
-
Players removed by
RemovePlayer
will not fire chat events. - event
-
ConvertPlayerEvent(96)
- patch
-
1.00
- Source
- common.j
- return type
-
event
- Source code
-
native TriggerRegisterPlayerChatEvent takes trigger whichTrigger, player whichPlayer, string chatMessageToDetect, boolean exactMatchOnly returns event