OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rederik on 16 Aug 2004, 02:12:06

Title: Trigger Activating Waypoint?
Post by: Rederik on 16 Aug 2004, 02:12:06
Preferably without using scripting, how can I make a trigger set off a unit to its predefined waypoint?

I'm trying to set up a simple counter attack which is set off by a trigger (already operational) that is set off when all the enemy units in the location are destroyed. At that point I would like friendly units and enemy units to come to the location of the battle.

Small problem, easy problem, my problem =). Thanks, ciao.
Title: Re:Trigger Activating Waypoint?
Post by: Zombie on 16 Aug 2004, 03:15:41
synchronize the trigger to the waypoint, give the units a move waypoint very close to where they start, then synch your trigger to that waypoint.  That waypoint won't be "completed" until the trigger is fired.  Make your trigger whatever you need it to be, and when it is fired the waypoint will be completed and they will ove on to the next waypoint
Title: Re:Trigger Activating Waypoint?
Post by: Rokket on 16 Aug 2004, 05:50:23
Here's an alternate, tho Zombie's will work great. This is a 6 of one, /half a dozen thing:

put a conditoional variable in trigger:

TRIGGER:  blah, blah,
on ACTIVATION: go=true

WP as Zombie describes, with:
CONDITION: go

Now the WP won't "go" until the condition is met, "go=true"
Title: Re:Trigger Activating Waypoint?
Post by: Rederik on 16 Aug 2004, 16:10:02
Thanks guys. I found out last night, which I've been using for my counter attack sequence already, is synchronizing the trigger with the first waypoint (the HOLD waypoint) of each of the incoming East  / West groups, which in turn, would not have the unit move till I take the town... From what I'm reading here, that may have been redundent, and I may ditch that and go with the advice you've given me. Thanks guys.