attempting to add a waypoint via the addWaypoint command does not work when the position supplied is obtained through the markerPos command.
- Legacy ID
- Not A Bug
- create a playable infantry unit and name it blu1.
- create a maker on the map and name it myMarker
- create a trigger (your choice of how to activate it) with the following in the on act box:
newWP = group blu1 addWaypoint [markerPos myMarker,0]; newWP setWaypointVisible true; newWP setWaypointType "MOVE";
- begin the game as blu1 and activate the trigger. Observe that no waypoint in created.
This is not a bug, you actually have an error in your SQF syntax - putting the markerPos command inside array brackets will create an array within the array. Instead, it needs to look like this:
newWP = group blu1 addWaypoint (markerPos myMarker);
^^ The above is confirmed as working (tested it myself). Closing issue.