Jump to content
Sign in to follow this  
longstreetcsa

Trigger - waiting for chat input?

Recommended Posts

Hello everyone! I am wondering if it is possible to have a trigger wait for a chat input - i.e. have a player use the "side chat" or "direct chat" to type something in, using a certain word or line activates the trigger. For example the player types in "I want to go fishing!" and the word "fishing" would triggers the trigger.

 

I am trying to use triggers in this way to make a RP chat situation with specific AI characters possible. Things do work already with the player activating different sentences (depending on randomization) from the AI, but it would be nice to have the player actually having to type something in.

 

Thanks for any help!

Share this post


Link to post
Share on other sites

Maybe HandleChatMessage EH could do that:

 

addMissionEventHandler ["HandleChatMessage", { params ["_channel", "_owner", "_from", "_text", "_person", "_name", "_strID", "_forcedDisplay", "_isPlayerMessage", "_sentenceType", "_chatMessageType"]; }];

 

https://community.bistudio.com/wiki/Arma_3:_Mission_Event_Handlers#HandleChatMessage

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×