05.04.2012, 11:09
Hello, I've asked before about a bleeding system. I have the ideas, but I simply need some help to make them realistic.
I'm trying to learn some of the basics of scripting, and together with that I had an idea for a bleeding system. The idea was that when the players health got below.. let's say 30 - then a timer would start, and he would start loosing health until he gets /heal'ed or gets to a sprunk and get his health over 30. If he of course gets it over 30, it'll stop. I suppose I have to somehow make it check "OnPlayerUpdate" if his health starts to go below 30 and then it should implement the timer which will make him loose health, let's say every 10-15 second.
Could someone provide me with some code, and explain how It'll work? Or can someone give me some tips on how to get started.
I'm trying to learn some of the basics of scripting, and together with that I had an idea for a bleeding system. The idea was that when the players health got below.. let's say 30 - then a timer would start, and he would start loosing health until he gets /heal'ed or gets to a sprunk and get his health over 30. If he of course gets it over 30, it'll stop. I suppose I have to somehow make it check "OnPlayerUpdate" if his health starts to go below 30 and then it should implement the timer which will make him loose health, let's say every 10-15 second.
Could someone provide me with some code, and explain how It'll work? Or can someone give me some tips on how to get started.