TriggerRegisterPlayerChatEvent
- Parameters
whichTrigger triggerThe trigger to which register the event.
whichPlayer playerThe player on which chat-messages to react to.
chatMessageToDetect stringThe message to react to. Pass
""to react to any message.exactMatchOnly booleantrueif only the exact string inchatMessageToDetectshould fire the trigger.falsewill trigger if thechatMessageToDetectappears anywhere in the entered string.- comment
Registers a chat event.
- note
The callback event will not have the
EVENT_PLAYER_CHATeventid, insteadConvertPlayerEvent(96)which has no attached global in common.j.- note
Players removed by
RemovePlayerwill not fire chat events.- event
ConvertPlayerEvent(96)- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
event- Source code
native TriggerRegisterPlayerChatEvent takes trigger whichTrigger, player whichPlayer, string chatMessageToDetect, boolean exactMatchOnly returns event