Движение npc. Как заставить npc постоянно преследовать героя без фризов и прочей фигни, что то получилось сделать но к сожалению после последней точки которую оставил герой они бегут обратно после срабатывает триггер приказа они разворачиваются и бегут на героя, со стороны как муравь по всей карте носятся а толку нет...

jasonrus96, ну подзывать каждые 3 сек вроде норм тема. Так значит система теперь работает?
Если да, то можно закрывать вопрос.
`
ОЖИДАНИЕ РЕКЛАМЫ...
10
RandomSpawnSystem
    Events
        Time - Mob expires
    Conditions
    Actions
        Set VariableSet TempPoint1 = (Position of MainHero_2[1])
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Region 020 <gen> owned by Player 6 (Orange))) Not equal to 99
            Then - Actions
                Game - Display to (All players) the text: (String(((Number of units in (Units in Region 020 <gen> owned by Player 6 (Orange))) + ((Number of units in (Units in Region 020 <gen> owned by Player 7 (Green))) + (Number of units in (Units in Region 020 <gen> owned by Player 8 (Pink)))))))
                Unit - Create 1 MobType[(Random integer number between 1 and 7)] for Player 6 (Orange) at (Random point in Region 059 <gen>) facing Default building facing degrees
                Unit - Order (Last created unit) to Attack-Move To TempPoint1
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Region 020 <gen> owned by Player 7 (Green))) Not equal to 99
            Then - Actions
                Unit - Create 1 MobType[(Random integer number between 1 and 7)] for Player 7 (Green) at (Random point in Region 059 <gen>) facing Default building facing degrees
                Unit - Order (Last created unit) to Attack-Move To TempPoint2
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Region 020 <gen> owned by Player 8 (Pink))) Not equal to 99
            Then - Actions
                Unit - Create 1 MobType[(Random integer number between 1 and 7)] for Player 8 (Pink) at (Random point in Region 059 <gen>) facing Default building facing degrees
                Unit - Order (Last created unit) to Attack-Move To TempPoint3
            Else - Actions
                Countdown Timer - Pause Mob
        Custom script:   call RemoveLocation(udg_TempPoint1)
Orders
    Events
        Time - Every 3.00 seconds of game time
    Conditions
    Actions
        Set VariableSet TempPoint1 = (Position of MainHero_2[1])
        Set VariableSet CreepGroup = (Random 12 units from (Units in Region 059 <gen> owned by Player 6 (Orange)))
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in CreepGroup and do (Actions)
            Loop - Actions
                Unit - Order (Picked unit) to Attack-Move To TempPoint1
        Set VariableSet CreepGroup2 = (Random 12 units from (Units in Region 059 <gen> owned by Player 7 (Green)))
        Unit Group - Pick every unit in CreepGroup2 and do (Actions)
            Loop - Actions
                Unit - Order (Picked unit) to Attack-Move To TempPoint1
        Set VariableSet CreepGroup3 = (Random 12 units from (Units in Region 059 <gen> owned by Player 8 (Pink)))
        Unit Group - Pick every unit in CreepGroup3 and do (Actions)
            Loop - Actions
                Unit - Order (Picked unit) to Attack-Move To TempPoint1
        Custom script:   call DestroyGroup(udg_CreepGroup)
        Custom script:   call DestroyGroup(udg_CreepGroup2)
        Custom script:   call DestroyGroup(udg_CreepGroup3)
        Custom script:   call RemoveLocation(udg_TempPoint1)
26
Отключи стража у юнита, чтобы не возвращался.
Загруженные файлы
10
konvan5, Они в ступор встают когда я отхожу в сторону, а так да эта штука работает. В обще все работает но криво.
26
Принятый ответ
jasonrus96, ну подзывать каждые 3 сек вроде норм тема. Так значит система теперь работает?
Если да, то можно закрывать вопрос.
Чтобы оставить комментарий, пожалуйста, войдите на сайт.