A function for determining the closest waypoint to any particular map spot.
findNearestWaypoint.sqf function:
Input 2d position (from onMapSingleClick or waypointPosition for instance).
Input name of trigger that covers wider area you want checked/is activated by side you want checked (or Anybody if you don't care).
(Optionally input minimum distance the waypoint has to be from the 2d position for it to return anything)
Output : waypoint (in waypoint format, i.e. [GroupName, WaypointNumber]) closest to position input.
View the forum thread for this resource here.
The OFPEC Command Reference contains details of all scripting commands available to the editor.
All you need to know about how to start editing.
This tutorial explains the mysteries of multiplayer editing.
OFPEC hosts several quality tutorials written specifically for the site by staff and members...
Register a tag, browse for addon keys...