OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: NightJay0044 on 27 Jun 2004, 19:01:13
-
Hello Everyone, My question is, how do you get a mission to end using triggers when at the start of the mission, 'you the player", are in the town, then after all objectives are complete, you have to return back to the same town and make the mission end? Now you can't use West, Present "end1" in the town becuase that will just make the mission end right when the mission starts. So if anybody could help me out that would be great, thanks. ???, ;D
-
Hi Jay,
There are several ways you can do this. First off, I'd recommend downloading and printing as many of the mission- making tutorials in the EDITOR'S DEPOT as possible. It's where I started and found many of the basics covered. ;)
That said, you can use variables in your triggers to be linked later.
Troops Start in Monroe, let's say
Trig1 "Take Lipany"
East - Not present
On Activation: papabear sidechat "Good work, men. Now let's go blow up some Commie tanks!"; TakeLip = true
Trig2 "Kill Tanks"
Condition: ! (alive ETank1) AND ! (alive ETank2) AND ! (alive ETank3)
On Activation: TanksDead = true
Trig3 "Evac at Monroe"
Type: End1
West - Present
Condition: this AND TakeLip AND TanksDead
Trig 3 will make sure the other 2 objectives are done before it triggers. :)
Also, you'll want to add these lines to your Init.sqs:
TakeLip = false
TanksDead = false
8)
-
Alright, thanks for your help, this should get me to where i need to go.
-
how do you do this, instead of one unit you choose all east units, is it possible?? /sith