Home   Help Search Login Register  

Author Topic: Some trigger help, please?  (Read 728 times)

0 Members and 1 Guest are viewing this topic.

Offline Viking

  • Members
  • *
  • NORSOF
Some trigger help, please?
« on: 18 Feb 2003, 20:44:28 »
Hi peeps!

I am making a mission(as you would have guessed by now), where the objectives are:
1. Neutralize all enemies in the camp.
2. Take out the enemy officer.
(bit of a classic, eh? :D)

Now, if you are detected by the enemy, the officer makes a run for it.
He drives and drives, and eventually gets to enemy territory(if you haven't  followed and stopped him).
Now, when he gets there, i have tried making a trigger that makes the mission end with objective 2 as failed. but the mission must only end if objective 1 is done.

Any suggestions on what i could put in the Condition field?'

Thanks,
Viking
VIKING
Modeller/Skinner/Coder
NORFOR

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Some trigger help, please?
« Reply #1 on: 18 Feb 2003, 22:15:24 »
in the triggers where you give the "done" objective put in this too:

end1=true

and in the other

end2=true

Then you put in a triggers condition field:

end1 or end2


 ;)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Some trigger help, please?
« Reply #2 on: 18 Feb 2003, 23:09:29 »
In init.sqs write

end1=false
Escape=false
Dead=false


Create a trigger covering the officer's escape area.  

activation box:    officer present (hit F2 and draw line from the trigger to the officer)
type:   none
condition:   this
on activation:       "2" ObjStatus "Failed"; Escape=true


Create a trigger covering the camp

activation box:    enemy not present
type:  none
condition: this
on activation:    "1" ObjStatus "Done"; end1=true



Create another trigger, size 0

type: none
condition:   (not (alive NameOfOfficer)) and (not Escape)
on activation:   "2" ObjStatus "Done";  Dead=true


Last trigger, size 0

type:  End#1
condition:   end1 and (Escape or Dead)


In other words the mission will end when the camp has been cleared and the officer is either dead or in the "safe" zone.

If the officer is killed after he escapes the objective is still marked as failed.
Plenty of reviewed ArmA missions for you to play

Offline Viking

  • Members
  • *
  • NORSOF
Re:Some trigger help, please?
« Reply #3 on: 19 Feb 2003, 14:56:15 »
Thanks man ;D!

(you too Armstrong;)

One more thing: I have tried pilling an "F2 line" between a trigger end a unit a couple of times, but it never worked ???
What am i doing wrong?

Cheers,
Viking
« Last Edit: 19 Feb 2003, 14:59:57 by Viking »
VIKING
Modeller/Skinner/Coder
NORFOR

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Some trigger help, please?
« Reply #4 on: 19 Feb 2003, 16:21:58 »
hmmm, dunno

The process is identical to Synchro (F5?), so if you can do that you can do this.   You just click on Groups first, rather than Synchro.

I sometimes get a feeling that you have to do it in a particular direction (trigger to unit, or is it unit to trigger) but I suspect that's just my imagination.

Click on Groups (F2)
Click and hold on the unit (trigger)
Drag the blue line to the trigger (unit)
Let go
Plenty of reviewed ArmA missions for you to play

Offline Viking

  • Members
  • *
  • NORSOF
Re:Some trigger help, please?
« Reply #5 on: 19 Feb 2003, 20:02:08 »
Oh, damn... then that's what I was doing wrong 8)

Thanks for the help macguba ;)

Viking


*******Topic Solved*******
VIKING
Modeller/Skinner/Coder
NORFOR