Help With Artificial Intelligence (AI)

I have no idea where to start with AI, just wondering if any of you have a source or a forum in which will help me, or give me example scripts of AI.

The AI in my game is basically a cube, that follows 3 waypoints set in a triangle and when I set close to the cube, it 'detects me' and begins to follow me whilst activating a 'kill player' function (which doesn't do anything at the moment).

But, for example how would I tell my AI to avoid obstacles whilst following me ... lets just say that my cube has 'zombie' features:

It moves aimlessly (check).

It sees player, and follows (check).

When zombie is close enough, it will harm player (check, well just activated a kill function).

Zombie to avoid obstacles (to do).

Another thing is that my AI gets confused when I am a higher level than my zombie (cube), it doesn't use stairs. It just gets as close to me as possible on its current ground level. This is obversely the case as I need to write some AI code to tell it to go up stairs when player is on higher level.

Any help, suggestions, or whatever

Sure would appreciate it.

You could take a look at unitySteer + Behave. Both are available on the new asset store for free.

To avoid obstacles you would have to use pathfinding.

There are three projects on the web for that (that I know of):

Path - A good pathfinding library for use with navmeshes, I don't think it works above 2.6 though.

The A* Pathfinding Project - An advanced pathfinding project which would probably work for your idea, it has some small issues with U3 though, an update will be released in a few days.

Waypoint Master - A quite simple pathfinding library, but might work for you, I don't know if it works with U3, though.

Good Luck!