Does anyone know how to achieve this Ai function?

So i had this script i downloaded a while ago and it was really good for zombie AI (it would follow your ANYWHERE even through a tough little obstacle course i made to test it. I’m not really sure how it did it because i didn’t get a good look at the script before i lost it, but i know it used a raycast for something, and it did not use waypoints. So basically i guess im wondering how can you make an object follow you (even around corners and up and down stairs/ hills and such) i remember it being a relatively short script it wasn’t like an insanely long script.

PS: actually in thinking about it, the script did behave a lot like the Call of Duty black ops zombie’s AI

Bump

Try testing some of these out unifycommunity.com under character controller.

also have a look at obstacle avoidance (uses a raycast). there are tutorials out there.

Hmm… I looked at the link that you showed me, but those aren’t quite what I’m looking for. I remember the script needed no set up, you drag it on an enemy object and assign the variables (target, move speed, etc). I don’t even think it used pathfinding, it seemed like it was more like it followed a LookAt object (the player) but could also go up and down hills and stairs and avoid walls.

Miraculous script then… Or just for basic scene or one zombie…
Rather check out some AI libraries like RAIN{one} or well that’s all I remember…

I know right? It really was a miraculous script, and i really hate myself for getting rid of it because now i actually have a use for it :frowning:

OK so there is a chance i might still have a little zombie game I made a long time ago that used that script, is there a way to… hack unity’s Windows standalone and get the script?

Update: So i found something very similar to it (dastardly banana’s Zombie AI, but it didn’t work right, so i guess ill just try to make my own.

If the script was in C# you could use Teleriks JustDecompile to get the source code out of the “Assembly-CSharp.dll” in the built project…

I’m actually just gonna make my own, I’ve already got some of it done, but thank you for telling me that, i may eventually have a reason to try that.