- Home /
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
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.
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.
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.
@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.
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."
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,)