D.murphy man 0 Posted April 24, 2003 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 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
suchey 0 Posted April 24, 2003 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
D.murphy man 0 Posted April 24, 2003 Thnx suchey, Well i tried it and nuthing happend  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. 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
RED 0 Posted April 24, 2003 </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