Units Want To Go Home...

IceWarrior98

New Member
Reaction score
12
Hey, yet another help topic by me. I'm having trouble getting one of my patrols to patrol without wanting to go back to where they were created. Everytime they stop at a location I tell them to wait, sort of like a rest stop, but instead they try to run back before the trigger tells them to continue their way, which they do, but they do the same thing at the other location. Can anyone help me?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Are the units owned by Neutral Hostile?
 

Azylaminaz

Vox Populi
Reaction score
91
Check if the unit has the wonder ability. Units normally "retreat" when they are attacked and they can't attack back. Order the unit to hold position.

Else, I have no idea, weird problem.
 

IceWarrior98

New Member
Reaction score
12
Ok it's fixed now, but now I can't get them to respawn. Can you tell me if there is something wrong with this? There are 4 units it should spawn yet it doesn't spawn any.

Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        And - All (Conditions) are true
            Conditions
                ((Triggering unit) is in ForestSpawn[14]) Equal to True
                (Number of units in ForestSpawn[14]) Equal to 0
    Then - Actions
        Wait 20.00 seconds
        Unit - Create 1 (Unit-type of (Triggering unit)) for Player 12 (Brown) at (Random point in Patrol 1a <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to ForestSpawn[14]
        Unit Group - Order ForestSpawn[14] to Attack-Move To (Center of Patrol 1b <gen>)
    Else - Actions
        Do nothing
 

Azylaminaz

Vox Populi
Reaction score
91
((Triggering unit) is in ForestSpawn[14]) Equal to True
> Asking if a unit is there.
(Number of units in ForestSpawn[14]) Equal to 0
> Asking if there are no units are there..

They counter themselves..
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
I need to see the whole trigger, please.
 
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