Jump to content
Sign in to follow this  
Blich

Loose mission after a scud has been fired

Recommended Posts

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 biggrin.gif

exit

Share this post


Link to post
Share on other sites

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

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

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

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

Sweet... thx Bart.Jan!!!! smile.gif  smile.gif  smile.gif

I had to change it to.... forceLoose=1... but other then that.. it worked great!.. thx again!  biggrin.gif

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  

×