Jump to content
Sign in to follow this  
etekiller

deleteWaypoint question

Recommended Posts

Hello, It's me again. I have got a simple question only. I want to make a chopper stop pursuing a waypoint in the middle of traveling to that waypoint. In the documentation deleteWaypoint asks for [group, id]. I know what the ID is, but if my chopper is not in any group then do I really have to assign him one? Name of the chopper is "copter" and I cant just put "copter" in the group field. If I add the chopper to a group then he won't execute the waypoint in the first place, just stands still, I don't know what to do.

Share this post


Link to post
Share on other sites

Try this

deleteWaypoint [(group (driver copter)),all];

Share this post


Link to post
Share on other sites

Thx, but when I use deleteWaypoint the chopper doesn't stop executing the waypoint. How can I make him stop and then add a second wayPoint?

Share this post


Link to post
Share on other sites
doStop copter;
_grp = group (driver copter);
_w1 = _grp addWaypoint [getMarkerPos "marker", 0];
_w1 setWaypointType "MOVE";

Share this post


Link to post
Share on other sites

Okay, thank you very much, I've made it work with setCurrentWaypoint, my loop counter was set in a wrong manner, that was the error. Is there a way to check if a waypoint has been completed?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×