OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PunkerSXDX on 07 Sep 2002, 02:47:30

Title: Ending on a Way Point
Post by: PunkerSXDX on 07 Sep 2002, 02:47:30
Is it Possible to end a mission on a WP? if so how?
Title: Re:Ending on a Way Point
Post by: Mike on 07 Sep 2002, 04:53:11
Have you tried grouping it to a Trigger? Or just make a field that detects when the unit has passed the radius, and put it on your last waypoint?..

There are probably better ways of doing this..
Title: Re:Ending on a Way Point
Post by: PunkerSXDX on 07 Sep 2002, 07:04:35
I tryed making a trigger linked to a WP but it didn't work. is it possible to make a trigger go off only when a certain unit is or isn't presnt?
Title: Re:Ending on a Way Point
Post by: macguba on 07 Sep 2002, 18:36:36
In the activation field of the waypoint put

end1=true

In the condition field of your End#1 trigger put

end1

So when the WP is completed the variable is set to true, the trigger fires and the mission ends.   However, it is not good practice to have things in your mission dependent on player waypoints - people will play the mission in ways you, the designer, can't even imagine, so there is too high a possibility of the end not happening.    The player may have missed a waypoint way back, for instance.   Much better to have everything triggered by, well, triggers.

You can make the trigger go off if a certain unit is present.    Create the trigger and the unit, then WHILE IN GROUPS MODE link the two and you get special options in the activation field.

Hope that does the trick.
Title: Re:Ending on a Way Point
Post by: PunkerSXDX on 07 Sep 2002, 22:00:29
Right On!