Jump to content
Sign in to follow this  
Blich

Scud firing after driver has been killed

Recommended Posts

I was using a script off of www.ofpec.com that fires a scud

; Script name : scudlaunch.sqs

; Prepare it

scudstud action ["SCUD Launch"]

; Wait 15 seconds

~15

; Launch it

scudstud action ["SCUD Start"]

Unfortunately ... If I kill the driver of the scud after it is raised.. but before it is fired... it will not fire.

I have 2 ways around this:

1) How do I make sure that it will fire once it has been raised (even if the driver has been killed)?

2) Much more difficult.. is it possible to get another troop(s) to hop into the scud and finish firing it?.... That way you would have to kill a bunch of troops before they could get into the scud.

Thx for your time

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">1) How do I make sure that it will fire once it has been raised (even if the driver has been killed)?<span id='postcolor'>

Not possible in my opinion. If there is no driver, there is no scudlaunch.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">2) Much more difficult.. is it possible to get another troop(s) to hop into the scud and finish firing it?.... That way you would have to kill a bunch of troops before they could get into the scud.<span id='postcolor'>

Rather easy to do. to detect if driver has been killed you need to create an empty SCUD and a driver unit near SCUD. Now give the unit a wp GetIn at SCUD. This way he will move into SCUD as driver. Now detect if driver is killed with a trigger.

Activation: Noone

Condtion: getdammage driver >= 1;

Now setup your replacement unit and give it a move WP directly in front of it´s feet, and a second one GetIn at SCUD.

Now sync the trigger with the FIRST WP of replacement unit.

The replacement unit will get into SCUD if driver is killed. Second thing is about the firing. I dont know if it works along with the script , but maybe it will work if you exec the script a second time, when replacement unit get´s into SCUD. For this add

[]exec "scudlaunch.sqs"

to the Onactivation field of GetIn waypoint of replacement unit.

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  

×