Home   Help Search Login Register  

Author Topic: Ending a mission with a script  (Read 766 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Ending a mission with a script
« on: 16 Jun 2005, 23:33:54 »
hello,

i need a script that waits until 2 trigers have been activated and then endWINs the mission. can sombody help me out? :)


thanks

Corben Dallas

  • Guest
Re:Ending a mission with a script
« Reply #1 on: 17 Jun 2005, 02:47:21 »
Very tired and off to bed now (2.40am here) but wil try to help tomorrow.  With assistance from others I got my script/trigger multi ending working.

What are you after, exactly..?  (Thinx: gawd, I might be able to give something back..!)

 ::)

CopyrightPhilly

  • Guest
Re:Ending a mission with a script
« Reply #2 on: 17 Jun 2005, 04:02:01 »
ok for this to work...

you will need 3 triggers:
in your two triggers that you want to be activated...
trigger one
activation filed: trigger1done=true
trigger two
activation filed: trigger2done =true

add another trigger on the map...
condition filed: trigger1done && trigger2done
type: end game

that will end your mission once the other two triggers have been activated, its not done via script, if you want to do it via script then do your 2 triggers like i said above...
make the 3rd trigger

condition filed: endgame1
type: end game

make a script, and in it put
@trigger1done && trigger2done
endgame1 = true
exit

in your init.sqs file
[] exec "whateverucallit.sqs"

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Ending a mission with a script
« Reply #3 on: 17 Jun 2005, 06:24:03 »
Score!

thanks for the help :)