OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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.
-
hmmm...isn't there a timeout option in the waypoint itself?
-
Correct! I was wondering who'd be the first to mention that.
-
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
-
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.