- Home /
Other
How to make an AI that moves around
Hey mates, i already made some AI scripts in the past, but i wanted to take another step. I have made an AI that follow the player based on his coordinates, i made an AI that is always looking at the player, and i made an AI that will randomly choose between one point or another, but i wanted to make an experiment. I know that this is kinda "science fiction", but i want to make an AI that will basically LOOK FOR/SEARCH FOR the Player. I want to make an AI that will behave as another player. Something that doesn't make what you order, something that just try to find the player. I am planning to make something that will save it's strategies and make it get better as the time goes on, like what Glados was trying to make in Portal 2, but how do i make an ai that moves around? Like just move around using the NavMeshAgent. I can do the rest, i just don't know how to make this part =\ Could you guys show me a tutorial or something? Thanks in advance!
Answer by Mergster · Dec 08, 2016 at 09:31 PM
EDIT2: OK, after a bit more researching, I found something more that may help:
http://answers.unity3d.com/questions/510659/move-randomly-npc-using-a-pathfinding.html
http://answers.unity3d.com/questions/475066/how-to-get-a-random-point-on-navmesh.html
https://forum.unity3d.com/threads/how-to-get-a-random-destination-on-navmesh.186547/
I have made an AI that follow the player based on his coordinates
Yes, i know how to make the AI follow the player, i was saying that i wanted to make it move around and try finding him.
Oh. Um....isn't that the same thing??? If the AI know the Player's coordinates, then couldn't he hunt down the player? So what you want is the AI to move around and look for the player without any coordinates? Srry. I'm all confused
I'm sure he's looking into on how to make a NPC roam around on the terrain by "itself"
Hm, it is very buggy =\ and i want to combine it with the navmesh.
These codes are either outdated or badly written, missing a lot of references and with nonsense things such as private Target target;
and seeker;
this doesn't even have any sense... I am going to find an answer for this eventually, never$$anonymous$$d.