I am working on a group movement system and it seems to have some issues.
I was using unit groups as shown bellow and it seemed to work but when i try to test its limits
spawning a lot of units they started to stop every few seconds and then keep following the move order.
But I didn't notice any other problems.
Can anyone tell me how to fix this or show me another way to make a reliable unit movement method?
Thanks in advance.
I was using unit groups as shown bellow and it seemed to work but when i try to test its limits
spawning a lot of units they started to stop every few seconds and then keep following the move order.
But I didn't notice any other problems.
-
Events
-

Unit - A unit enters lightruralhuman1 <gen>
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

If - Conditions
-


(Unit-type of (Entering unit)) Equal to Light Rural Human Strength 1
-
-

Then - Actions
-


Unit - Order (Entering unit) to Attack-Move To (Center of lightruralhuman2 <gen>)
-


Unit Group - Add (Entering unit) to creepshumanrural1[1]
-
-
-
Events
-

Unit - A unit enters lightruralhuman2 <gen>
-
-
Conditions
-
Actions
-

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-


If - Conditions
-



((Entering unit) is in creepshumanrural1[1]) Equal to True
-
-


Then - Actions
-



Unit Group - Remove (Entering unit) from creepshumanrural1[1]
-



Unit - Order (Entering unit) to Attack-Move To (Center of darkruralhuman2 <gen>)
-



Unit Group - Add (Entering unit) to creepshumanrural1[2]
-
-


Else - Actions
-
-
-
test
-

Events
-


Time - Elapsed game time is 0.20 seconds
-
-

Conditions
-

Actions
-


Hashtable - Create a hashtable
-


Set creepshumanrural1h[1] = (Last created hashtable)
-


Hashtable - Create a hashtable
-


Set creepshumanrural1h[2] = (Last created hashtable)
-


etc...
-
-
-
Events
-

Unit - A unit enters lightruralhuman1 <gen>
-
-
Conditions
-
Actions
-

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-


If - Conditions
-



((Unit-type of (Entering unit)) Equal to Light Rural Human Strength 1
-
-


Then - Actions
-



Unit - Order (Entering unit) to Attack-Move To (Center of lightruralhuman2 <gen>)
-




Hashtable - Save 1 as (Key group) of (Key (Entering unit)) in creepshumanrural1h[1]
-
-
-
-
-
Events
-

Unit - A unit enters lightruralhuman2 <gen>
-
-
Conditions
-
Actions
-

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-


If - Conditions
-



(Load (Key group) of (Key (Entering unit)) from creepshumanrural1h[1]) Equal to 1
-
-


Then - Actions
-



Unit - Order (Entering unit) to Attack-Move To (Center of darkruralhuman2 <gen>)
-



Hashtable - Save 0 as (Key group) of (Key (Entering unit)) in creepshumanrural1h[1]
-



Hashtable - Save 1 as (Key group) of (Key (Entering unit)) in creepshumanrural1h[2]
-
-


Else - Actions
-
-
Can anyone tell me how to fix this or show me another way to make a reliable unit movement method?
Thanks in advance.







