How do I make my Ai character chase the player with a csharp script?
Hi, I am currently making a game where there's an Ai that is chasing you and I am a newbie at scripting and have no idea how to make the AI chase the player. It would be helpful if you could include an hp script for when the AI is attacking the player as well. Please respond fast because I have a project due in a week. Thanks!
FAQ :
What are the guidelines for writing good questions?
We want Unity Answers to become a comprehensive database of questions and answers related to Unity. When you ask your questions, it can be helpful to keep a few things in $$anonymous$$d:
Don't write things that will be irrelevant in a few days. Writing that "This is urgent!" will probably not get you faster answers, but it may make people frown at your question.
Some reasons for getting a post rejected:
There exists duplicate questions with answers if you were to do a search, either on Answers or on the Forum or on Unity's tutorials
Your question isn't specific enough: asking for a script, asking multiple questions in one post or asking a question that could be either subjective or require extensive discussion
Answer by tormentoarmagedoom · Apr 23, 2018 at 08:14 AM
I response very very fast!
SEARCH, READ, TRY, AND LEARN.
PD: Thanks Helium
Your answer
![](https://koobas.hobune.stream/wayback/20220612161316im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Need support on my basic navmesh ai script to follow the player at a certain distance 1 Answer
Aron Granberg A*, Set the AI destination setter on a prefab to follow a game object 0 Answers
How to make an npc/ai walk next to the player? (C#) 1 Answer
2D AI enemy following and rotation error 0 Answers