Col Saint 0 Posted October 17, 2002 K everything is working thanks RED and all the others which helped me. But I can´t get this script running: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _burnT1 = bmp1 _damage1 = 0 #start ?(getdammage _burnT1) == 1; goto "hurt1" goto "start" #hurt1 _dammage1 = 0 ?(player distance _burnT1) <= 6; goto "hit1" ~1 goto "start" #hit1 _damage1 = getdammage player ~1 _damage1 = _damage1 + 1; player setdammage _damage1;?(player distance _burnT1) <= 6; goto "hit1" ?(getDammage Player >= 0.8) && ?(player distance _burnT1) <= 6; exec another.sqs ?(player distance _burnT1) >= 6 && ?(getDammage Player == 1); goto "start"<span id='postcolor'> This should make a soldier get damaged when standing beside a burning vehicle. And what do I do when the vehicle stopped burning, well I want it to be save so how do I tell in script when the script stopped so its save again? I guess I have to learn alot about that scripting but no realy good tutorial I found, which could teach most stuff. Share this post Link to post Share on other sites
Bart.Jan 0 Posted October 17, 2002 Try this script. But you must find how long  (in seconds) is bmp in fire after destroying and put that value into script. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _burnT1 = bmp1 ;waits until bmp is destroyed @(getdammage _burnT1) == 1 ;time of destruction _start=time ;      \/ here put time (in seconds) in which bmp stops fire _stop=120 #hurt1 ;hurts player if he is 6m near bmp ?(player distance _burnT1) <= 6:player setdammage (0.1 + getdammage player) ;this exec your another.sqs script when he is near bmp and near death ?((getDammage Player >= 0.8) && (player distance _burnT1<= 6)): [] exec "another.sqs" ;when bmp stops fire sript ends so it's safe to be near wreck ?(time>(_start+_stop)):exit ~0.1 goto "hurt1" <span id='postcolor'> Share this post Link to post Share on other sites
Col Saint 0 Posted October 17, 2002 thank you for the fast reply I will try it out tonight, and will send in my results. Ty Bart.Jan Share this post Link to post Share on other sites