Jump to content

Rosso777

AI Chat via Triggers

Recommended Posts

Spawned an AI that I want to say things in Chat when the player is within 5 meters.

I've done a TON of research on AI Chat Addons/Scripts, etc. None of them have instructions, so I couldn't quite figure out how to make AI give info to players (Dedicated Server, Exile). In the editor, everything works FLAWLESSLY. But when I add it to the server, the only thing that won't happen is the actual CHAT. The Ai waits a certain amount of time and then walks away, which is also based on a player-activated trigger. Can anyone see why this cat won't speak?
 

  Reveal hidden contents

 

Share this post


Link to post
Share on other sites

For the sake of anyone else who may encounter a similar issue in the future,  I will continue to update as I progress (or otherwise). I have discussed through very thorough testing that my triggers are NOT firing on the dedicated server. They run local with zero issues, but will not figure at all on the server. I was wrong to say that things were working a bit and it was only the chat that was flawed. I have tried every variable I could think of to activate the trigger, to no avail:

 

For this line essentially, 

    _this setTriggerActivation ["ANYPLAYER","PRESENT",false];
    _this setTriggerStatements ["call{this}","call{hint ""Hello."";}","call{this}"];

 

I have tried replacing ANYPLAYER with ANYBODY, BLUFOR, OPFOR, GUER, and even so far as trying to name specific players by their in-game name ("Roscoe"). No luck so far. 

I have been scouring these and other forums like a madman, and have learned a TON, but no success just yet. I read somewhere that if things are working in the editor on the local machine, they should also be working on the dedi, and I even went so far as to start adding the isServer()  stuff in the beginning of each trigger Condition or Activation. Nada.

 

I will continue to update as I go. Hopefully success will be found and it will help someone else someday. SO MANY TIMES am I seeing where someone had the SAME problem, said they solved it, and never said how. Ouch.

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

×