Home   Help Search Login Register  

Author Topic: The mission ends wrong...  (Read 810 times)

0 Members and 1 Guest are viewing this topic.

Knut Erik

  • Guest
The mission ends wrong...
« on: 22 Feb 2003, 14:48:56 »
I have a mission where you shall destroy three scuds. (have a question about this mission in this forum allready, but this is a new topic..)

You have 300sec to destroy them. To do that i use a trigger like this:

time 300sec
condicion : scudlaunch
on activation : scud1 exec "scudlaunch.sqs"

In the init.sqs file i have put "scudlaunch=true"

Then the tricky part come. When the scuds are destroyed, i use another trigger like this.

condicion : not (alive scud1) && not (alive scud2) && not (alive scud3)
on activation : scudlaunch=false

This seemes right but when i have destroyed the scuds, the mission failes after 300 sec anyway..  :-\

What can be wrong here...  ???


Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:The mission ends wrong...
« Reply #1 on: 22 Feb 2003, 15:07:35 »
cause then the scudlaunch has allready been activated and you can do nothing about it. Here is what you do:

In the trigger where its 300 sec put a new keyword in the on activation field. like

scudfire=true

Make a trigger that has condition scudfire and make it activated by 0 secs. Then activate the scud launch from there.

Uhm, if I can say it myself I wouldnÂ't understand this the first time I read it cause I am no good explainer, try to read it some times and then ask if you dont get it.

Knut Erik

  • Guest
Re:The mission ends wrong...
« Reply #2 on: 22 Feb 2003, 16:07:47 »
Relax mean  8)
I think u explained it pritty well. I'l trie it now.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:The mission ends wrong...
« Reply #3 on: 22 Feb 2003, 16:15:50 »
Here's what to do

init.sqs

scudLaunch=false
scudDead=false


Trigger1
Countdown:  300
condition:   true
on activation:  scudLaunch=true


Trigger2
Countdown: 0
condition: scudLaunch and (not scudDead)
on activation:  [scud1] exec "scudlaunch.sqs"  or whatever


Trigger3
condition: not (alive scud1) && not (alive scud2) && not (alive scud3)
on activation: scudDead=true
Plenty of reviewed ArmA missions for you to play

Knut Erik

  • Guest
Re:The mission ends wrong...
« Reply #4 on: 22 Feb 2003, 20:06:09 »
Ahh!  :D

Thanks a lot! That solved the problem.
Topic solved all right!  8)