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 Ryan Mayer · Jan 31, 2011 at 03:19 AM · tornado-twinsworm

how to create Objectives

Hi im following the tutorial by tornado twins and i wanna make a mission so that when my worm kills 10 turrets itll bring him to a new scene where they can go to the next level. need a java script for the mission plz help

Comment
Add comment · 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 tertle · Jan 31, 2011 at 03:29 AM 1
Share

Asking the same question over and over isn't going to get you a better answer.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Noah-1 · Jan 31, 2011 at 05:02 AM

Hey ok I know how to solve that.

Well first create a tag for every turret. (for example "Turret1-Turret10")

function OnTriggerEnter (other : Collider) {

if other.compareTag (""Turret1) //Use the same code for your 9 normal turrets,it will destroy them.

Destroy (gameObject);

if (other.CompareTag ("Turret10")) { //For the last one justchange the reaction

   Application.LoadLevel("Your level");          


}

}

I hope it helps, Good Luck. Finish the script and add it to the worm.

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 Ryan Mayer · Jan 31, 2011 at 08:41 PM 0
Share

hey i got 2 errors these were the errors

Assets/$$anonymous$$aterials/Target1.js(4,4): BCE0044: expecting (, found 'other'.

Assets/$$anonymous$$aterials/Target1.js(4,9): BCE0043: Unexpected token: ..

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

Missing Method Exception and Null Reference Exception 3 Answers

GAMEOVER SCRIPT for worm game 2 Answers

Turn colliders off in script 2 Answers

Having Trouble With "Worm" T_T Tutorial 2 Answers

shooting and seeing through walls. 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