Problem With Commanding My A.I

comparami

New Member
Reaction score
4
Events
Time - Every 1.50 seconds of game time
Conditions
Actions
For each (Integer A) from 6 to 9, do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of AI_H_players_hero[(Integer A)])) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an ally of (Owner of AI_H_players_hero[(Integer A)])) Equal to True
((Picked unit) is A structure) Equal to False
Then - Actions
Unit Group - Add (Picked unit) to AI_H_friendly_nearby[6]
Else - Actions
For each (Integer A) from 6 to 9, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in AI_H_friendly_nearby[(Integer A)]) Greater than 0
Then - Actions
Unit - Order AI_H_players_hero[(Integer A)] to Attack-Move To (Center of Heaven Hero Start <gen>)
Else - Actions
Unit - Order AI_H_players_hero[(Integer A)] to Attack-Move To (Position of Lightning Tower - (Level 1) 0048 <gen>)

whats the problem here?
it cant seem to pick the units nearby and add them to the unitgroup which equals to the A.I. not to attack-move to Heaven Hero Start.

i've been trying and trying and i cant seem to solve the problem.:banghead:
 
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