Jump to content
Sign in to follow this  
dkraver

Scud Launch

Recommended Posts

Can any tell me what i am doing wrong here. Im trying to create a scud launch in the 4 stages the Official Comref says is possible. I made a scud called scud1 then makes a trigger with x and x range, switch activated when west is present. But here comes the problem. When writing the script from the comref in the on activation field like this:  

ScudState scudname>=1

it says:

type bool, expected nothing

Why??

Share this post


Link to post
Share on other sites

still get the same message when i do

scudstate scudname > 1

Share this post


Link to post
Share on other sites

Was searching the editing forum for this, and stumbeled on this thread. Seems it was never really cleared out, and I'm having the same problem. When used in Initialization and in a trigger, "scudstate scudname > 1" and "scudstate scudname>=1" and many other forms with different spaces are given the error: "Type Bool, expected Nothing".

Anyone knows how it works?

Share this post


Link to post
Share on other sites

You use the command in a totally wrong way.

The scudstate-command is only there to let you know what a scud is right now doing, it is not to be ment to order the scud to do something now.

I guess you will initiate a scud launch if western units activate the trigger. For that you should try the dofire-command or the action-command (don't know the correct syntax).

Share this post


Link to post
Share on other sites

wow.gif7--></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Rastavovich @ Mar. 18 2002,18wow.gif7)</td></tr><tr><td id="QUOTE">You use the command in a totally wrong way.

The scudstate-command is only there to let you know what a scud is right now doing, it is not to be ment to order the scud to do something now.

I guess you will initiate a scud launch if western units activate the trigger. For that you should try the dofire-command or the action-command (don't know the correct syntax).<span id='postcolor'>

Hmm, I see, but the comref says this:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">

scudState scud

Operand types:

   scud: Object

Type of returned value:

   Number

Compatibility:

   Version 1.28 required.

Description:

   Current state of given Scud launcher. Following states are recognized: 0 - No activity, 1 - Launch preparation, 2 - Launch prepared, 3 - Ignition, 4 - Launched. Note: Non-integral values are used to indicate transition between states.

Example:

   scudState scudOne>=4

<span id='postcolor'>

Then I would say if I used stage 2 (launch prepared) I would see a scud with the rocket pointed upwards. Guess not, but there most be a way to start a scud with the rocket prepared?

Share this post


Link to post
Share on other sites

Ah, thanks very much Rastavovich, after trieing a bit it appeared the action-command, as you told, works. Just the simple: scud action ["scud launch"] does the trick. Thanks again!

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  

×