Home   Help Search Login Register  

Author Topic: Scud Launcher Question  (Read 498 times)

0 Members and 1 Guest are viewing this topic.

Dingmatt

  • Guest
Scud Launcher Question
« on: 28 Dec 2004, 11:26:02 »
This may have been asked before but is there anyway for the game to detect if a scud launcher has launched its scud?
Not as in the 'launch scud' command but later on if it were to check?

Thx for the help,
Dingmatt

bored_onion

  • Guest
Re:Scud Launcher Question
« Reply #1 on: 28 Dec 2004, 11:48:56 »
make a variable true when you issue the command to launch the scud so when you write the command to launch (ill use a guess for the sake of argument because i dont know what the exact syntax is):

Code: [Select]
scud launchscud
then write:

Code: [Select]
launched=true
then you can make triggers that activate scripts check if it is true by writing

Code: [Select]
launched==true
in the condition box
« Last Edit: 28 Dec 2004, 11:50:09 by bored_onion »

Offline C0LDSt33L

  • Members
  • *
  • Member of the SotM Team
Re:Scud Launcher Question
« Reply #2 on: 28 Dec 2004, 12:00:29 »
In case it's launched by a player and not by a command you could check out this from the aciton sticky thread:

Quote
Name:            Scud launch preparation
Description:    Makes scud missile move to vertical ready-to-launch position
Syntax:          unitname action ["scud launch"]
Example:        scud1 action ["scud launch"]
Note1:            Takes about 12 seconds
Note2:            Use the command scudstate to check the launch state of the scud


Name:            Scud start
Description:    Makes scud missile ignite and launch
Syntax:          unitname action ["scud start"]
Example:        scud1 action ["scud start"]
Note1:            You do not have to use the action Scud launch first
Note2:            Use the command scudstate to check the launch state of the scud

Look at the note 2s.

If the scudstate is 0 then nothing has happened.
If it is 1 then the rocket has been errected.
It it is 2 then the rocket is ready to fire.
If it is 3< then the scud has been fired.

So you could have

#Check
?(scudsate scud>3) : goto "Launched"
~1
goto "check"

#Launcher
Guy Say "OhNo"
exit

The numbers for the states are a little wobberly though so you may need to experiment.
« Last Edit: 28 Dec 2004, 12:02:45 by C0LDSt33L »

Dingmatt

  • Guest
Re:Scud Launcher Question
« Reply #3 on: 28 Dec 2004, 12:00:54 »
all the commands are self-sustaned in the addon pbo, could i add one of there varibles to the scripting in there and have mulitple scuds all tracking there own statis?

Dingmatt

Dingmatt

  • Guest
Re:Scud Launcher Question
« Reply #4 on: 28 Dec 2004, 12:04:35 »
that last post came through as i was posting mine, thx that will be of great help.

Thx again.

Dingmatt