Original Post
Hallo every body.. I am a C++ programmer,and I work on my project which is Game Engine (FPS Game Engine). of course the AI in games is a complicated subject. I feel it and i have some problem in it. In my engine the AIplayer must do the following basically: 1- walk in the world ( sub area of it). 2- attack the main player (me) when they see me. of course it will developped much more in the future, but now it's enouph. I suggest the following: I use the graph to make the AI player walk on the world. But when they see the mainplayer they will leave the graph and will attack or persuite him by A* algo. Is that simple suggestion suitable? are there any other ways that serve this case which are better than mine? thank you all for your attention.