| 10-04-2005, 04:39 PM | #1 |
I'm making something like a Tower Defense, only with units instead of towers. The problem is, when the units form a wall, so that the waves can't get through - then the waves don't do anything. How do I get them to attack? I've tried basically everything... |
| 10-04-2005, 08:52 PM | #2 |
The unit needs a pathing map. Is there a reason why you cannot have the units imobile? |
| 10-05-2005, 06:09 AM | #3 |
Not sure what you mean by "pathing map", if you mean that they should have their own "road" for walking where the defending player units can't go, then I don't want that. I want the mazing-option. |
| 10-05-2005, 08:25 AM | #4 |
A) Test to make sure the units CAN be attacked by the spawn. (Test it by controlling them yourself) If they can't rectifiy this. B) I Have never specifically made a TD trigger but i'd imagine telling your units to ATTACK MOVE instead of MOVE should solve your problem as long as A is true. |
| 10-05-2005, 11:59 AM | #5 |
I'm sure that they can, I've tested it. And I've tried attack-move as well, doesn't work. |
| 10-05-2005, 04:54 PM | #6 | |
Quote:
|
| 10-05-2005, 05:40 PM | #7 |
Well, they treat the players as neutral. Then they should be able to attack if blocked, right? |
| 10-06-2005, 12:20 AM | #8 | |
Quote:
|
| 10-06-2005, 06:27 AM | #9 |
Ahh okay, will try. |
| 10-06-2005, 07:44 AM | #10 |
Think about it. If YOU THE PLAYER A+Move neutral units, do YOU attack them? Common sense people, works wonders. |
| 10-06-2005, 09:51 AM | #11 |
Well, I've set myself to be the enemy, but now they attack me even when I don't block (like I thought that they would). And they do that when I'm an enemy and they A+Move. |
| 10-06-2005, 09:58 AM | #12 |
Then just order them to move instead? Think about it, if you order your units to move, do they attack enemies on the way? Common sense, please. |
| 10-06-2005, 10:51 AM | #13 | |
Quote:
No, but then they don't attack them when blocked either! (have tested move-function) |
| 10-06-2005, 12:43 PM | #14 |
false. They do after some time. if a unit can't find a way to its destination it will somewhen give up and stop. and when a unit stopped it will automaticly start attacking enemys nearby - this AI fuction is used since starcraft's sunken defense. pretty much the base of tower defenses. |
| 10-06-2005, 03:22 PM | #15 |
Well, I've given them like 2 minutes to react to the wall and nothing happens! (Yes, I'm sure that they can attack the walling units) |
