Koni 1 Posted November 13, 2011 _pos = getMarkerPos "bg11"; _grp = groupname; _wp = _grp addWaypoint [_pos, 0]; [_grp, 1] setWaypointSpeed "LIMITED"; [_grp, 2] setWaypointType "MOVE"; [_grp, 3] setWaypointBehaviour "SAFE"; _pos = getMarkerPos "bg12"; _grp = groupname; _wp = _grp addWaypoint [_pos, 4]; [_grp, 5] setWaypointSpeed "LIMITED"; [_grp, 6] setWaypointType "MOVE"; [_grp, 7] setWaypointBehaviour "SAFE"; _pos = getMarkerPos "bg13"; _grp = groupname; _wp = _grp addWaypoint [_pos, 8]; [_grp, 9] setWaypointSpeed "LIMITED"; [_grp, 10] setWaypointType "CYCLE"; [_grp, 11] setWaypointBehaviour "SAFE"; That's what I am using for a simple 3 point waypoint cycle but the unit goes to the last waypoint and stops there and dosen't start back at the beggining again. I would guess I have done something wrong, but what is it ? Thanks Share this post Link to post Share on other sites
wiggum2 31 Posted November 13, 2011 I think you are doing something wrong with all those "setWaypoint[...]" and the index number: http://community.bistudio.com/wiki/Waypoint It should look like this: _pos = getMarkerPos "bg11"; _grp = groupname; _wp = _grp addWaypoint [_pos, 1]; [_grp, 1] setWaypointSpeed "LIMITED"; [_grp, 1] setWaypointType "MOVE"; [_grp, 1] setWaypointBehaviour "SAFE"; _pos = getMarkerPos "bg12"; _grp = groupname; _wp = _grp addWaypoint [_pos, 2]; [_grp, 2] setWaypointSpeed "LIMITED"; [_grp, 2] setWaypointType "MOVE"; [_grp, 2] setWaypointBehaviour "SAFE"; Share this post Link to post Share on other sites
Koni 1 Posted November 13, 2011 I was using someone else's example which obviously didn't work. Cheers Wiggum Share this post Link to post Share on other sites