Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Aug 16, 2015 at 06:32 AM by getyour411 for the following reason:

Duplicate Question

avatar image
-1
Question by Maenor · Aug 16, 2015 at 04:57 AM · c#unity 53dai

How can i do a Very basic enemy AI or chase system? Unity 5

Hi there!! ^^ I'm on the making of a very simple game ... and until now it is going pretty well =) The only thing left are the enemy "AI" (If it even deserves that name xP) For now, as this is an Alpha state or "Concept" the current enemies are just singular cubes! ^^ I want this cubes to "Patrol" determined points on the map and chase the player on sight with the intention of "Finish Him". I have everything else, the collider "Termination", the respawn, the menus, in singular words i have a completed game ... but i just need this last part and honestly i do not know what to do.

Comment
Comments Locked · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image getyour411 · Aug 16, 2015 at 06:32 AM 0
Share

You already asked this, and it was closed as this is a duplicate question.

http://answers.unity3d.com/questions/1029577/guides-or-tutorials-for-a-very-basic-enemy-ai-unit.html

There are countless examples - what have your searched for, tried and include your script code. Not to be harsh but this is not a script writing service.

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by mattyman174 · Aug 16, 2015 at 05:21 AM

Use a Sphere trigger as your AIs "detection radius" (you could also do something clever along with this and give the AI a FOV) once the Player enters the Sphere, the AI can change to a state of Attack. If it doesnt know where the player is, simply get the cubes to do a simple move to some target points until the Player becomes aware to the AI.

Does this make sense?

Comment
Comments Locked · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Maenor · Aug 16, 2015 at 05:40 AM 0
Share

mmm yeah ... kinda xP I still having to get used to the "Program$$anonymous$$g Logic" .... Anyway, i have a couples of doubts about it ... How can i give the AI a FOV? I mean, if there is a wall between them how can i "Not allow it" to see the player? ...

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do i access the MeshExtrusion.cs from Unity's PE? 1 Answer

How can I rotate my player with a Joystick? 0 Answers

Can a c# script in unity be coded to alter itself? 1 Answer

How do i create objects in between two points with an offset??? 1 Answer

Help with rotation. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges