Jump to content
Sign in to follow this  
D.murphy man

Take away health little bits at a time

Recommended Posts

Hey ppl yet again im asking for help (what a suprise) maybe ill actully get round to reading a tutorial one day (yea right lol)

any ways to the point...

How do i take away little bits of a players health at a time if a certain unit gets close? I have a rough idea on how but every thing iv tried hasent worked so far confused.gif if possible could i allso have this little script i made my self put in with it?

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_zombie=_this select 0;

#loop

~0.1

_zombie domove (getpos victem)

~0.1

goto "loop"<span id='postcolor'>

Thnx,

Murphy Man

Share this post


Link to post
Share on other sites

perhaps soemthing like this?

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#start

?(player distance zombie<5):goto "damage"

~5

goto "start"

#damage

_dam=getdamage player + .05

player setdamage _dam

#goto "start"<span id='postcolor'>

Share this post


Link to post
Share on other sites

Thnx suchey,

Well i tried it and nuthing happend confused.gif  at first i thought i jus might not be noticeing the dammage,so i put the dammage to 1 and nuthing? Not even a warning message saying somthing not working. confused.gif

EDIT: Actully i have an idea why it aint working hang on let me try summing.

EDIT 2: hmm maybe to many edits lol. any ways now im getting a warning message saying "_dam=getdamage player+ .10 player unkowen operater" or sothing like that but i havent even changed it yet lol wierd

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#start

?(player distance zombie<5):goto "damage"

~5

goto "start"

#damage

_dam = (getdammage player) + 0.05

player setdammage _dam

#goto "start"

<span id='postcolor'>

RED

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×