Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by Jason-Henrie · Jul 17, 2012 at 12:16 PM · enemyrangeenemiesinfo

How to make Enemies

I need information for that how to make enemies who attacks in range.

Comment
Add comment · Show 3
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 frankyboy450 · Jul 17, 2012 at 12:36 PM 0
Share

can we get some more input on what you want? what kind of enemy is it you want? is it people who runs around and shoot you or is it some turrets?

avatar image Jason-Henrie · Jul 17, 2012 at 06:58 PM 0
Share

its knights and turrets

avatar image Jason-Henrie · Jul 18, 2012 at 08:32 AM 0
Share

I$$anonymous$$ READY WITH THE TURRETS NOW I NEED $$anonymous$$NIGHT ENE$$anonymous$$Y HOW ATTAC$$anonymous$$S IN RANGE

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Owen-Reynolds · Jul 17, 2012 at 09:05 PM

The Angry Bots demo has got shooting turrets.

You can open it in Unity, play it to see who shoots, select the shooters, open up the scripts and see how they work. Then can make some small changes and play again to see if you understand it.

Also, can't resist, another way to make enemies is to not look things up :-) Lots and lots of people here have gotten help with enemy spawning/shooting scripts. You can read those to see what they did.

Comment
Add comment · 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 frankyboy450 · Jul 17, 2012 at 09:25 PM 0
Share

voted up. Great answer. other people will probably also need to read this post to remember the demo and check it out.

avatar image
0

Answer by SimonAlkemade · Jul 17, 2012 at 01:57 PM

check for the distance and shoot, something like this: if(Vector3.Distance(turret.position, enemy.position) < attackDistance){turrent.LookAt(enemy.position); StartCoroutine(Shoot());}

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
avatar image
0

Answer by Nsmurf · Jul 18, 2012 at 07:42 AM

You could check out the FPS tutorial, it has robots that patrol over waypoints and fire when in range as well as turrets.

You can find the tutorial here

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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

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

Related Questions

How to correctly do an enemy ranged attack script? 0 Answers

Scripts for enemies ! 0 Answers

How do I make my player re-spawn in its original place on collision of enemy? 1 Answer

Enemy VISION range? Help! 0 Answers

Loading new level after killing enemies 3 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