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
-1
Question by Michael 16 · Feb 21, 2011 at 06:59 PM · aienemyaiflyingmultitasking

Flying AI enemy with many tasks

I have a 3D enemy that I created. I need a script to make that enemy fly, summon other 2 enemies, shoot on me and then fly up me, throw something on me and do all this again. The enemy should be hard to kill. It should go like that:

  • Fly from the base;
  • Stop somewhere;
  • Land and summon enemy1;
  • Wait few seconds;
  • Take off;
  • Go another plase;
  • Land and summon enemy2;
  • Wait few seconds;
  • Take off;
  • Fly to my plase while shoot on me;
  • Stop shoot and drop someting on me;
  • Fly back to the base;
  • Wait until enemy1 die (if enemy1 died befor - wait few seconds);
  • Do all this again;

The flying from and to the base should be faster then the other tasks. If it to hard to make I understand it.

Sorry for poor english.

Comment
Add comment · Show 2
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 PrimeDerektive · Feb 21, 2011 at 07:41 PM 3
Share

It's called UnityAnswers, not UnityFreeScripts.

avatar image FLASHDENMARK · Feb 21, 2011 at 07:57 PM 3
Share

This is not charity!

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by poncho · Feb 21, 2011 at 08:51 PM

Dude, you have the right algorithm, just need to be creative in the moment of scripting, try to make exactly as you request, and after some time you will learn to make AI scripts

good luck

Comment
Add comment · Show 4 · 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 Michael 16 · Feb 22, 2011 at 05:10 AM 0
Share

First: I know how to scrip, unity is not new for me. second: I don't know how to make it fly, go to a random plase and fly up to me. The other task I think I know how to do.

avatar image poncho · Feb 22, 2011 at 03:05 PM 0
Share

making something "fly" is just changing the position of the object on mid air, this means that is not Touching the floor, thats flying. the other thing, going from the original position to the player position can be done by vector3.Lerp method, that needs the origin position and destination, in this case the origin position is the enemy position and the destination is your player, also to make it attack you can calculate player position on what his position is and his movements are, just some basic physics and you are done, as i said, just a little thinking and you will give birth your own AI

avatar image Michael 16 · Feb 22, 2011 at 03:49 PM 0
Share

There is ani tutorial for that?

avatar image poncho · Feb 22, 2011 at 04:43 PM 0
Share

you can google AI, or something, but mainly is, "what would you do in case of", just try to script it

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

No one has followed this question yet.

Related Questions

AI Enemy Follow Player 2 Answers

Is it possible to make enemies Open doors? 2 Answers

Enemy Follow AI problem 0 Answers

How do you move did with [iTWEEN] the enemy has a component of [Character Controller]? 0 Answers

How to make enemy attack multiple unit rather then single?(updated) 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