Blich 0 Posted November 16, 2002 Ok I have scud that follows this script... I need this mission to be lost if the scud is successfully fired... which would be this part 'scudstud action ["SCUD Start"]' What is the easiest way for a LOOSE mission to be activated? I am not very good at scripting... so can explain exactly what I have to type in. I just need the cmd to make the loose happen. Thx ; Script name : scudlaunch.sqs ; Prepare it scudstud action ["SCUD Launch"] ; Wait 15 seconds ~15 ; Launch it scudstud action ["SCUD Start"] ; wait 1 second ~1 forceLoose=1; <--- I suspect this is the prob.. Just made it up exit Share this post Link to post Share on other sites
Blich 0 Posted November 16, 2002 Like this?? because that doesnt work... I already tried it. I just want the mission to end (you lose) once the scud has fired. ; Script name : scudlaunch.sqs ; Prepare it scudstud action ["SCUD Launch"] ; Wait 15 seconds ~15 ; Launch it scudstud action ["SCUD Start"] ; wait 1 second ~1 forceEnd=1; exit Share this post Link to post Share on other sites
Bart.Jan 0 Posted November 16, 2002 use only : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">forceEnd<span id='postcolor'> If it'll not work use : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">forceLoose=1<span id='postcolor'> and make loose trigger on map with condition : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">forceLoose==1<span id='postcolor'> Share this post Link to post Share on other sites
Blich 0 Posted November 16, 2002 thx.. the Loose works.. but I need it dependent on the scudstud action ["SCUD Start"] and only on that.:( So if the scud is detroyed before it reaches that part... it will not make you lose. Maybe a variable that get switched when the scud has launch.. although I dont know enough to make that work. pls help.. thx Share this post Link to post Share on other sites
Bart.Jan 0 Posted November 16, 2002 Try : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ; Script name : scudlaunch.sqs ; Prepare it scudstud action ["SCUD Launch"] ; Wait 15 seconds ~15 ?!(alive scudstud):exit ; Launch it scudstud action ["SCUD Start"] ; wait 1 second ~1 ?!(alive scudstud):exit forceEnd exit<span id='postcolor'> Share this post Link to post Share on other sites
Blich 0 Posted November 17, 2002 Sweet... thx Bart.Jan!!!! Â Â I had to change it to.... forceLoose=1... but other then that.. it worked great!.. thx again! Â Share this post Link to post Share on other sites