Hello, I just make some AI script these week. I make AI for Airplane Deathmatch and TeamMatch game. Shortly, I make it and work perfectly (I think
), But when i see my AI movement, it`s look like “Too Clever” and The maneuver is bad, And Now I just think about
" How Can I Make the AI that have an Input Like a Player?"
I mean really Like a player. so The AI can Use Player script for itself.
is there any Tutorial or a Simple Script for learning?
Thanks 
sorry for my Bad English ,
I’ve implemented an AI system that simulates player input in the past. However, there is no tutorial or simple script I know of.
I can give a few tips of what I did though…
- As you suggested, make the AI use the same class as the player.
- Have the AI generate the inputs through their ai code, and have them process them just like player input is processed.
- Add varying amount of delays to ai actions to simulate human response times.
I pretty much only allowed AI to do what the player can do. So, my AI system was all about informing the AI about what was happening around them, and allowing them to make decisions based off of the info.
Hopefully this gives you a few ideas to think of. Good luck!