- Joined
- Jun 2, 2009
- Messages
- 1,218
Hello everyone. I have created AI system for my map and now i want to detect enemy heroes around AI heroes and attack or cast spells onto them.
First of all i am setting TempPoint to location of the Computer 8-9-10-11-12 and i have a Booleans that detects AI is running away from creeps, heroes, towers or going back to the base for the regeneration.
Now i want to do that.
By the way you can suggest anything different instead of my system.
My objective is detect enemy units within range matching conditions
First of all i am setting TempPoint to location of the Computer 8-9-10-11-12 and i have a Booleans that detects AI is running away from creeps, heroes, towers or going back to the base for the regeneration.
-
BotHeroBul Copy Copy
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 8 to 12, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in zUG_HerolarAIReaper and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(zU_AIHero[(Integer A)] is in zUG_RegenReaper) Equal to False
-
zBool_AIKaciyor_Creepten[(Player number of (Owner of (Picked unit)))] Equal to False
-
zBool_AIKaciyor_Herodan[(Player number of (Owner of (Picked unit)))] Equal to False
-
zBool_AIKaciyor_Kuleden[(Player number of (Owner of (Picked unit)))] Equal to False
-
-
Then - Actions
-
Game - Display to (All players) for 1.00 seconds the text: (Name of (Picked unit))
-
Set TempPoint = (Position of (Picked unit))
-
-
-
-
-
-
-
-
-
Set TempPoint = (Position of (Picked unit))
-
Set TempGroup = (Units within 800.00 of TempPoint matching (((Matching unit) is in DevilHerolariHepsi) Equal to True))
Now i want to do that.
-
If - Conditions
-
(Percentage life of (Picked unit)) Less than or equal to 25.00
-
Then - Actions
-
By the way you can suggest anything different instead of my system.
My objective is detect enemy units within range matching conditions