idk_a_name
ABC GUM :D
- Reaction score
- 43
O.K I have a few problems with my map.
First, I have units spawning from 2 sides of the map. When they spawn I order them to patrol to a line, thus making them attack any enemy they see on the way. But if they kill a unit they stop patrolling.
Second, If the units that are patrolling make it to a certain region they are ordered to attack a gate. I have made sure that only computer owned units will attack the gate, but when a player controlled hero enters the region it attacks the gate anyways
Third, Once the units destroy the gate they are ordered to attack another tower. But instead, after they kill the gate they just patrol back and forth and some go run back to the spawn points. I made it so that only units that are controlled by brown (the color of the spawned units) to attack the tower.
Please help if you can, I've been trying to figure out how to fix it for awhile. There are possible more leaks and problems I have, but these are the only ones I can find right now.
First, I have units spawning from 2 sides of the map. When they spawn I order them to patrol to a line, thus making them attack any enemy they see on the way. But if they kill a unit they stop patrolling.
Second, If the units that are patrolling make it to a certain region they are ordered to attack a gate. I have made sure that only computer owned units will attack the gate, but when a player controlled hero enters the region it attacks the gate anyways
Code:
attack
Events
Unit - A unit enters West side patrol stop <gen>
Conditions
Actions
Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
Loop - Actions
Unit - Order (Entering unit) to Attack City Gate (Horizontal) 0269 <gen>
Third, Once the units destroy the gate they are ordered to attack another tower. But instead, after they kill the gate they just patrol back and forth and some go run back to the spawn points. I made it so that only units that are controlled by brown (the color of the spawned units) to attack the tower.
Code:
Attack King
Events
Destructible - City Gate (Horizontal) 0269 <gen> dies
Conditions
Actions
Player Group - Pick every player in Player Group - Player 12 (Brown) and do (Actions)
Loop - Actions
Unit - Order (Matching) to Attack King Proudmoore 0022 <gen>
Please help if you can, I've been trying to figure out how to fix it for awhile. There are possible more leaks and problems I have, but these are the only ones I can find right now.