OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Baphomet on 06 May 2003, 21:56:15

Title: Assign waypoint after trigger activation.
Post by: Baphomet on 06 May 2003, 21:56:15
I was trying to figure out how to make a group of people or multiple groups go to a predefined waypoint, only if this criterion is met: (not (alive general)). Secondly, they (the groups) must be mobile and able to do things before this condition is achieved and then receive this waypoint order without previous interference. Is this possible without any scripting?

I figure I may have to use a trigger and group it with something... however adding this "(not (alive hostage))" to the condition field in the waypoint they're supposed to go if the general dies... does not work. So I'm stumped.
Title: Re:Assign waypoint after trigger activation.
Post by: CrashnBurn on 06 May 2003, 22:00:44
give the group waypoints where you want them to go up until the trigger goes off. Make the trigger of type switch. Now give the group a waypoint where you want them to go after the trigger goes off. Synchronize the trigger with the waypoint before the last one.
Title: Re:Assign waypoint after trigger activation.
Post by: Iwesshome on 06 May 2003, 22:06:41
To push further on CrashnBurn's example:

Move
Move
Move
Cycle ------------------------ Trigger sync'd here
Search and Destroy
Move


IW
Title: Re:Assign waypoint after trigger activation.
Post by: Morson on 07 May 2003, 02:39:28
I'm looking to do the same thing and am abit of a newbie at this editing; how do you do this exactly?  I don't know how to make a switch work properly.
Title: Re:Assign waypoint after trigger activation.
Post by: macguba on 07 May 2003, 09:04:30
There's not much to say ... follow Iwesshome's example (can't imagine where he got the idea of writing it out like that  ::) ;D) and make the trigger type switch.   That's it.   Obviously you can use any waypoint types you like.     The group won't go past the WP linked to the trigger until it is first.   However, when it is fired, they will go straight to the  waypoint after the trigger one from whereever they are.

So, in the example, if the group was at the second move WP when the trigger was fired they would go straight to seek and destroy.

There is a switch trigger tute in the Ed Depot I think ... it might still be in Pending.
Title: Re:Assign waypoint after trigger activation.
Post by: SimonRussi on 07 May 2003, 09:04:52
create the Wps as Iwesshome and CrashnBurn said. Then create the trigger, in the TYPE field select switch. In the Activation field select None and in the condition field write Not(alive(general)).
The trigger is now set. Now press F2 and draw a line between the trigger and the WP which is just BEFORE the one you want to activate (like the Cycle one in Iwesshome example) and you are done.

simon

#edit: i see MacGuba writes faster than me. ;D
Title: Re:Assign waypoint after trigger activation.
Post by: Iwesshome on 07 May 2003, 14:13:56
Macguba,

I learned from the best... I remembered my friends and hit that search button. The light turned on and I came across your wonderful post  ;D

IW