Im making this horror game and i seen a few games that have a wondering ai and when it seee the player it goes after them like in the game ignited freddy. Im also trying to figure out how to not make it go through the walls. And when it loses sight of the player it starts to wonder until it finds the next person i dont wanna use ai's cause there to glitchy
#Ai That Wonders
2 messages · Page 1 of 1 (latest)
There are 3 methods you could use for this.
-
Rec Room AI – Have a Rec Room AI and a model that gets Set Transformed/Respawned above.
-
Raycast AI – When the Raycast hits a wall, the AI moves parallel to it (Vector Cross a Vector3 Create [0,1,0] with the Surface Normal.)
-
Node AI – Cycle through either a baked connection of nodes or every single node and move to a Node that it can see (Raycast to the Node Position and if the Object is Equal to the Node, you can alter and add other calculations to it.)