Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
-2
Question by ChewbaccaStudios · Sep 08, 2013 at 07:26 PM · enemydamagebulletholebullet-marks

Enemy Damage and health Script like DLG and leonardotry

How do I make a Health/Damage script with bullet marks (Decal)for my enemies like Drunken Lizard Games or leonardotry? I've been searching for more than a week on multiple search engines, the forum, answers, and even YouTube. I'm intermediate for scripting, but I can't make a health script, or even a script with enemy health. I have an enemy AI if you want it, but it's only for following. cheers.... :D :D Edit: I've Figured it out thanks for all the negative support ! I've also made a movie with your Username(s) in the credits

Comment
Add comment · Show 4
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 landon912 · Sep 08, 2013 at 08:18 PM 2
Share

Sorry to break it to you, but that's not on an intermediate level mate. We also don't do your work for you. If you need it you either buy it or make it.

avatar image perchik · Sep 09, 2013 at 02:52 AM 2
Share

If you've been trying for days and can't get anywhere, I'd suggest starting a forum post for discussion, because it shouldn't take that long to make it do something.

It sounds like you're still stuck on the logic of how to handle your problem, ins$$anonymous$$d of the actual code. I'd suggest figuring out the logic first, and the forum is a good place for a discussion to figure that out.

$$anonymous$$y guess is that you haven't done a lot of program$$anonymous$$g in the past, or at least any problem solving. Buying a solution or copying someone else's code doesn't really help you learn to solve problems.... yes sometimes seeing a solution helps, but creating one is the way to go.

Figure out how to break your problem into multiple parts, figure out how to break it into parts you can solve. When you get stuck writing the code for some of those parts, after you write code that you think does something but it does the wrong thing, then ask your question here.

avatar image thingimibob · Dec 03, 2013 at 04:38 AM 1
Share

Guys don't do comments like "we won't do it for you and blah blah blah", if you have an answer just write it.

avatar image landon912 · Dec 10, 2013 at 07:44 PM 0
Share

@thingimibob How's that $$anonymous$$$$anonymous$$O server going that you asked for?

The point is if you rely on people for your needed things, you won't get anywhere. Do things yourself that's the only way to learn.

2 Replies

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

Answer by Taryndactyl · Sep 09, 2013 at 02:45 AM

This may not help you much but you should take a look at the Decal System by Edelweiss Interactive. That should help you with your "bullet marks."

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
1

Answer by siphon · Sep 08, 2013 at 08:39 PM

Ok,now here is just a bit of code to help you get started. var enemyhealth : in = 100; var playerhealth : int = 100; function update (){ if (enemyhealth = 0) Debug.Log ("I think It's dead,Better shoot it some more to be sure"); }

Now I have not made a health script in some time and did not test this one so I don't know If I did it right(I think so,)

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

20 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

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Material doesn't have a color property '_Color' 4 Answers

Setting Scroll View Width GUILayout 1 Answer

collision with enemy that give damage 2 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