Multiple Region Patrol malfunctioning...

Razed

New Member
Reaction score
44
Hi, I want a creep to patrol from 'R1 -> R2 -> R3 -> R2 -> R1' and then repeat again.

I'm using this trigger:
Code:
Nature Special Patrol 1
    Events
        Unit - A unit enters Region 579 <gen>
        Unit - A unit enters Region 580 <gen>
        Unit - A unit enters Region 581 <gen>
    Conditions
        (Unit-type of (Entering unit)) Equal to Medium Nature Creep
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Region 579 <gen> contains (Entering unit)) Equal to True
            Then - Actions
                Set Nature_Mob_Check = 0
                Unit - Order (Entering unit) to Move To (Center of Region 580 <gen>)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Region 580 <gen> contains (Entering unit)) Equal to True
                Nature_Mob_Check Equal to 0
            Then - Actions
                Unit - Order (Entering unit) to Move To (Center of Region 581 <gen>)
            Else - Actions
                Unit - Order (Entering unit) to Move To (Center of Region 580 <gen>)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Region 581 <gen> contains (Entering unit)) Equal to True
            Then - Actions
                Set Nature_Mob_Check = 1
                Unit - Order (Entering unit) to Move To (Center of Region 580 <gen>)
            Else - Actions

The above three regions are the R1, R2, R3... And at the beginning of the game I order the unit to move to R1. But whenever the unit hits R2 it stops with patrolling.

Anyone know a solution?

EDIT: Nature_Mob_Check is an Integer-type variable.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top