- Home /
Need a Basic AI Script for Unity 3.0
I have no experience with making AI for Unity. I'm looking for a script for a "duck hunt" type of game. I just need the target to walk from the spawn point (point A) to destination (point B) while avoiding objects along the way. Later I plan on make an addition to the script that would let me change the forward speed of the target upon being "shot at".
I'm mainly an Artist and have very little exposure to programming so any help would be greatly appreciated. I do know that what sounds simple could turn out to be a nightmare. So if you could show me a script that will work or point me in the right direction that would be nice too.
Thank you. :)
Answer by testure · Sep 09, 2011 at 05:19 AM
Heh, i wish it was that easy man.. i really do. Even a pre-made AI package is sometimes a beast to get set up.. so fair warning there.
Having said that though, look into these:
UnitySteer: http://www.arges-systems.com/articles/274/unitysteer-2-2-released/
Path: http://angryant.com/path/
Aron's A* (this is what I use for pathfinding): http://www.arongranberg.com/unity/a-pathfinding/
Rain{One} (don't know much about this one: http://u3d.as/content/rival-theory-/rain-one-/22D
hope that helps.
Where do you unzip the files for UnitySteer to? I've looked everywhere. The file doesn't say where.
Answer by kabel · Sep 09, 2011 at 05:17 AM
Download this: http://www.arongranberg.com/unity/a-pathfinding/ Source: http://answers.unity3d.com/questions/9025/pathfinding-tools-in-unity.html
Look at the example scene. You will need to change the position of the target of the Seeker script once your duck has reached it. There are some tools for unity but anway you will have to code mostly by yourself.
Your answer