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 01:14 AM by getyour411 for the following reason:

Duplicate Question

This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Maenor · Aug 15, 2015 at 09:21 PM · c#unity 5triggerplayerai

Guides or Tutorials for a Very Basic Enemy AI? [Unity 5]

Hi there!! ^^ I'm on the making of a Very simple game for PC and Android! =) I have almost everything set up except for my enemies. For now, as this is a simple concept or "Alpha" of what this game will be about, the enemies are singular cubes, i want this cubes to patrol "Pre-Established" patrol points and if it sees the player on sight, it can be able of chasing him and eventually, on a single collision, end the game. (With out getting stuck on walls xP) I have done some of the simple stuff like Re-Spawn for the player, make the player get destroyed on a collision with the enemies and so on ... but i failed to develop some sort of system that allows the Enemy locate the player and go on his search :/ So i came here to see if any of you can share some "internet knowledge" with me and sending me to a page where i can find a decent tutorial on this matter. ^^ (Since the Stealth Tutorial [Where they talk about Enemy AI] doesn't support Unity 5.X and it is developed with a WAY more complex system than my game)


For what i have read and seen on the previous investigation for this question, it should be the Enemy GameObject + movement script + trigger spherical collider + a "Detection Script" But i do not have ANY idea of what to put on the detection script and how to making it related to the enemy movement u.u ... Also ... that stuff of the NavMesh got me a little confused. Thank you so much for any kind of help!! :'3 (My apologies if the description is too long xP)

Comment
Add comment
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

1 Reply

  • Sort: 
avatar image
0

Answer by getyour411 · Aug 16, 2015 at 01:13 AM

IMHO, NavMesh is out of scope of a very basic AI. The detect script is essentially the trigger collider

 OnTrigger
 if col.tag = "Player"
 // do stuff like chase

Movement and waypoints are covered many times in UA, Google, YouTube, other; search first, indicate what you've tried and post with specifics and your relevant script code.

Comment
Add comment · 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

Follow this Question

Answers Answers and Comments

25 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

Related Questions

It does not add money to player when it should ? 2 Answers

Emit Particle upon Death 2 Answers

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

Enemy wont damage player 0 Answers

A.I - what is better for player checking ? 0 Answers


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