OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dectm on 12 Feb 2004, 13:27:44

Title: getting a unit to wait untill going to next waypoint and other
Post by: Dectm on 12 Feb 2004, 13:27:44
hi ,
do anyone know how to get an unit to wait untill it goes to the next waypoint?

and if I can make a tirgger that makes a a unit go to it's next waypoint

kind of basic stuff but I haven't had much use for it untill now


also can I get an unit to go to a serten waypoint and dissapear ?
or make a trigger that makes an unit to appear ?


I hope I can get some evens to this.
Title: Re:getting a unit to wait untill going to next waypoint and other
Post by: macguba on 12 Feb 2004, 13:56:15
There are basically two ways to make a group wait at a waypoint.   One is to use the command lockWP.

The other is to synchro a trigger with the WP.   Head over to the Editors Depot and read some tutes that cover triggers, in particular the one about switch triggers.

To make a unit disappear use the commands setpos (to a different part of the island) or deleteVehicle.
Title: Re:getting a unit to wait untill going to next waypoint and other
Post by: myke13021 on 12 Feb 2004, 15:03:36
hmmm...isn't there a timeout option in the waypoint itself?
Title: Re:getting a unit to wait untill going to next waypoint and other
Post by: macguba on 12 Feb 2004, 15:14:05
Correct!   I was wondering who'd be the first to mention that.
Title: Re:getting a unit to wait untill going to next waypoint and other
Post by: myke13021 on 12 Feb 2004, 15:21:59
i was....maybe we should be more precisely about the use of trigger or the timeout option...

if you want the group to wait a certain time (say 1 min) at a waypoint, use the timeout option.
if you want the group to wait untill a certain condition has met, use synced trigger.

I hope this put it to the point
Title: Re:getting a unit to wait untill going to next waypoint and other
Post by: Harkonin on 12 Feb 2004, 21:38:54
You can also put a condition in the waypoint, so say you have the condition set to something in a trigger you'd have conditionname = True.