What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Cancel GpsMove?

Status
Not open for further replies.

Barok

Member
Joined
Sep 11, 2014
Messages
231
Reaction score
0
Как остановить выполнение метода gps.GpsMove()?
К примеру ,я отслеживаю нужное мне условие через эвент onGpsPreMove, и когда оно наступает, мне нужно отменить GpsMove и продолжить выполение скрипта дальше.

GoogleTranslate:
How to stop the execution of the method gps.GpsMove ()?
For example, I keep track of my condition right through Event onGpsPreMove, and when it comes, I need to cancel GpsMove meet the following script and continue on.
 
Вобщем сам решил своб проблему через MoveTo
Code:
foreach (GpsPoint pmove in gps.GpsGetPath(gpspointname).OrderBy(x=> me.dist(x.x, x.y)))
                                {
                                    if (мое условие)
                                    {
                                        MoveTo(pmove.x, pmove.y, getZFromHeightMap(pmove.x, pmove.y));
                                    }
                                    else
                                        break;
                                }

Если у кого есть получше решение, огласите, или быть может в самом Gps есть какой хитрый метод на остановку движения?)
 
Status
Not open for further replies.
Back
Top