OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Dj Tano on 20 Mar 2007, 20:30:35

Title: "Creating" waypoints
Post by: Dj Tano on 20 Mar 2007, 20:30:35
Hey guys,

i would like to know if you can somehow make a trigger that, if activated, makes a unit go down waypoints...
Title: Re: "Creating" waypoints
Post by: Cheetah on 20 Mar 2007, 22:35:02
I suggest that you take a look at this thread (http://www.ofpec.com/forum/index.php?topic=28840.0).

Additionally. A lot of commands have been added, for example setWaypointBehaviour (http://www.ofpec.com/COMREF/ArmAOnly/index.php?action=list&game=All&letter=s#setWaypointBehaviour). The only command I couldn't find was that to create a new waypoint. Probably just overlooking it and someone else will add it to a later reply. For now, take a look at these commands and the topic and if you do still have any problems feel free to ask for more help (maybe more useful help).
Title: Re: "Creating" waypoints
Post by: h- on 21 Mar 2007, 07:52:57
Quote
The only command I couldn't find was that to create a new waypoint.
You don't need to create waypoints, each single unit (un-grouped) or a group leader get's a initial waypoint right on top of it.
It's number is 0 and you can access it with the new waypoint commands.

For example
Code: [Select]
[groupname,0] setWaypointBehaviour "safe"
EDIT:
Oh, and the command for creating waypoints is addWaypoint (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=a#addWaypoint)

But I don't think that's what Dj Tano is after  :scratch:
You mean setting a trigger in the editor?

If so, set the triggers type to 'switch' and synchronize the trigger with a waypoint prior to the waypoint you want the unit to go to.
Once the trigger gets activated it will 'free' the next waypoint for the unit..