I need to switch the State of my bots using a button. The states (Still, Idle, Combat, Avoid etc) are store in an Enumeration and they are automatically switched when certain condition in the game are occured.
The problem is that I need to allow an Administrator to manually switch the states of my bots. How can this happen? I tried events, keys with no success.
Thank you in advance!
https://www.youtube.com/watch?v=evYE7tfWXUY
You can learn about AI there.
https://www.youtube.com/watch?v=g0nM43FOVdk&list=PLFY4PASroVXJq-NzsHi_nvsORUUSk0yuE
And you can learn about everything else such as states here.