Home   Help Search Login Register  

Author Topic: Multi Objectives equals One End  (Read 1176 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Multi Objectives equals One End
« on: 29 May 2006, 23:44:03 »
I have 7 scud launchers that must be taken out.
If anyone of them is still operational then the ending is failed.
However if they all out of working order then mission ends with a win.
My problem is how do I set the objectives so all 7 will make the one or the other end triggers end the game in a multipler game? ???
Thanks Sharkyjoe
« Last Edit: 29 May 2006, 23:58:02 by sharkyjoe »
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re: Multi Objectives equals One End
« Reply #1 on: 31 May 2006, 17:03:32 »


INIT.SQS

Quote
Tx_Objectives = [ scud1,scud2,scud3,scud4,scud5,scud6,scud7]
Tx_AllDestroyed = false
"" exec "Monitor.sqs"




MONITOR.sqs

Quote

#INIT
?!(local server):exit

#START
~5
if ({alive _x} count Tx_Objectives ==0)then{Tx_AllDestroyed = true; Publicvariable "Tx_AllDestroyed"; exit}else{goto "START"}


and then have an end trigger with condition "Tx_AllDestroyed"


Nb>>  Requires you to add a standard bis logic to your mission, which you need to name   Server
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re: Multi Objectives equals One End
« Reply #2 on: 01 Jun 2006, 00:57:45 »
GLUP!!! :o
I thought it would be complicated. I've only dealt with SP mission objectives.
I will give this a go and see How I do.
Thanks so much for the info.
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance