Home   Help Search Login Register  

Author Topic: ending a mission through a script (not a trigger)  (Read 688 times)

0 Members and 1 Guest are viewing this topic.

_hammy_

  • Guest
ending a mission through a script (not a trigger)
« on: 06 Apr 2003, 00:50:54 »
This question ahs always bothered me.... How could I end (activate end1) a mission through a script? (not using a trigger to end it)

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:ending a mission through a script (not a trigger)
« Reply #1 on: 06 Apr 2003, 14:00:13 »
forceend or sumthin. Check the online command reference.

_hammy_

  • Guest
Re:ending a mission through a script (not a trigger)
« Reply #2 on: 06 Apr 2003, 20:50:47 »
k, ill try that. :)

_hammy_

  • Guest
Re:ending a mission through a script (not a trigger)
« Reply #3 on: 06 Apr 2003, 23:47:33 »
nope, it doesn't work.... :(

ill try to figure something out....

thanks for the help. :)

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:ending a mission through a script (not a trigger)
« Reply #4 on: 07 Apr 2003, 02:40:09 »
The way I do it is by having a variable, then setting that variable to true to activate the trigger. eg.

Trigger

Radius: 0,0
Type: end #1
Condition: win1

Script

...blah blah blah
win1 = true

Make sure you do a couple of things:
  • initialise your variable. Make sure you have win1 = false in either your init.sqs, or the init line of a unit somewhere
  • Terminate any cameras you have running around. A end trigger will not activate until all existing cameras have been terminated (gee that sounds like stupid 80's movies literic ;D)
Anyway, I do this all the time, and provided you take those two things into account it works like a charm :)

_hammy_

  • Guest
Re:ending a mission through a script (not a trigger)
« Reply #5 on: 07 Apr 2003, 03:19:34 »
thanks