OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tim Pink on 17 May 2003, 13:51:36

Title: Trigger question
Post by: Tim Pink on 17 May 2003, 13:51:36
Hi again

Umm......just a little trigger question.
is it possible to have a trigger that only activates after you a certain amount of people or objectives are destroyed?
and how would you configure it to do that?

how do you get the extract waypoint ot appear after that trigger is activated if the unit has no waypoints b4 and has been wandering around by at its own free leisure?

how do u a get a trigger to detect if someone is dead and then activate ?
Title: Re:Trigger question
Post by: Tomb on 17 May 2003, 16:34:16

Hey pinky  ;) listen up, m8  :-*

#1
"a trigger that only activates after you a certain amount of people or objectives are destroyed" :

Condition field of trigger should read :

  !alive bob && !alive rob ...etc

Just name yer units in their NAME fields when ya create 'em.
( the " ! "  means "not", and the   "&&"  means  "and")  :)


#2
...waypoint (should) appear after that trigger is activated " :

well, try & hit the F5 button and drag a syncro-line between unit's WP and the trigger itself.
If you (I guess theunits is player) have no waypoints, just make ONE and put it right next to yer start pos. Then synch it like I said w/ the trigger  8)

So when the trigger fires, yer NEXT waypoint will pop up, as the first one was completed right from start of mission - it just waits for that trigger to fire.
You can make the WP a "HOLD" type and write whatever in the "Description" field.
(that is the text that will pop up on screen, describing the waypoints "meaning" to the player.)


#3
how do u a get a trigger to detect if someone is dead and then activate ?


well, bob, you already have that one! Read reply #1  :-* ;D



Title: Re:Trigger question
Post by: Ace on 17 May 2003, 19:41:17
simpler syntaxs :

Quote
is it possible to have a trigger that only activates after you a certain amount of people or objectives are destroyed?
and how would you configure it to do that?

in the condition box write : not alive bob

and to check if a group of people are dead:

not alive bob and not alive bill and not alive jim

Make sure to make good use of the And, Or commands when scripting.

Quote
how do you get the extract waypoint ot appear after that trigger is activated if the unit has no waypoints b4 and has been wandering around by at its own free leisure?

Create a trigger again and in the condition box write whatever you want the trigger to be activitated by (so it could be if bob dies, or when all east not present, bla.)

and in the ONactiv. box write bob move getmarkerpos "bobs_extract_point"

what this does is create a WP from scratch at the position of the marker called bobs_extraction_point.

make sure you create a marker called bobs_extraction_point to make it work.