5133p39 16 Posted February 3, 2005 Is there a way to remove existing waypoint? I can move current wp by SetWPPos to current unit's position, but it doesn't seems to work - the unit always finishes the original WP. Share this post Link to post Share on other sites
Chris Death 0 Posted February 3, 2005 If you syncronize the previous waypoint of the one you've setwppos'ed with a switch trigger (multiple activation), and you reactivate the switch trigger (note: to reactivate a switch trigger, it off course must become deactivated before) - the unit/group will head over to new destination. ~S~ CD Share this post Link to post Share on other sites
5133p39 16 Posted February 3, 2005 thanks for the advice, but it won't help me I forgot to mention, i am creating all these waypoints in a script which controlls patrol movement and it's reaction to various conditions. Placing WPs in mission editor doesn't fit my needs. Share this post Link to post Share on other sites
Chris Death 0 Posted February 3, 2005 Post 1: Quote[/b] ]Is there a way to remove existing waypoint?I can move current wp by SetWPPos to current unit's position, but it doesn't seems to work - the unit always finishes the original WP. Post 2: Quote[/b] ]thanks for the advice, but it won't help meI forgot to mention, i am creating all these waypoints in a script which controlls patrol movement and it's reaction to various conditions. Placing WPs in mission editor doesn't fit my needs. For some reason it doesn't seem that your 2 posts deal about the same thing OFP doesn't support anything like createWaypoint - only manual ordering (move/doMove). Anywayz - if you use your own created waypoints, this can only be about move or doMove, and that would be easy to send a group to a new destination by just assigning a new move (doMove), which will overrule the previous order. ~S~ CD Share this post Link to post Share on other sites
5133p39 16 Posted February 3, 2005 sorry, i thought it would be clear, but it isn't. Here's the explanation: When i am talking about 'creating waypoints' i mean using the 'Move' command (which creates a new WP which is used after completing all previous WPs). DoMove creates new WP and makes it current - when this WP is reached, unit continues it's way through previously assigned WPs. ...if i am not mistaken. (there is also a command 'SetWPPos' - i didn't tested it, bud i think it should CREATE NEW wp, if the index number you specify is bigger than index of last WP) Quote[/b] ]Anywayz - if you use your own created waypoints, this canonly be about move or doMove, and that would be easy to send a group to a new destination by just assigning a new move (doMove), which will overrule the previous order. ...this doesn't solve my problem. I need to delete previous WP, because when you issue new DoMove/Move command, then this new waypoint becomes the current one and AFTER it is completed, the previous WP becomes current again, OR it is activated after all previous WPs are completed (in case of Move) - and that's exactly what i am trying to get rid of. Share this post Link to post Share on other sites