| 07-28-2004, 06:27 AM | #1 |
Hi. The spawnies on my map can't seem to tell which way to go. I'm using a periodic timer to create the spawnies in a region. And once they are created, I tell them to attack move to another region. Sounds standard enough. But what happens is that, they'll move along fine at first, encounter enemies, and start fighting. It's all good, until suddenly, they decide to move back to their spawning points. I have no idea what causes this. I'm currently using another periodic timer to pick all spawns in a lane, and re-issue them the attack move order. But that seems to create more problems that it solves, because when the trigger fires, sometimes the spawns will run right ahead to their target destination, ignoring enemies. In other words, in between fights, my spawns will decide that they want to head home, and I don't have an effective solution to overcome this. Can anyone tell me the cause of this behaviour, and how to solve it? |
| 07-28-2004, 09:32 AM | #2 |
This behaviour is normaly associated with the "neutral hostile" player, that is the creeps. Those units will only obey orders to a certain extent, and then return home. I have noticed such behaviour in my AoS map as well, but only very rarely with individual units, so I suppose it must happen on some wierd occasions and I have yet to determine what they are. If you are getting such behaviour with a computer controlled player, check for any AI scripts you may run in the trigger editor. Otherwise, if you are using a neutral or rescuable controller, switch it to computer. |
| 07-28-2004, 10:14 AM | #3 |
Yes, it is a computer controlled player, and yes, they still turn back after a while. As for my triggers, they are as standard as they come, like I've already explained. One thing that I noticed is that this behaviour is more likely to happen when a fight has just finished. Aka, I push the lane with my test hero, my test hero and my spawnies manage to wipe out a wave of spawnies from the opposing team, and then some of my spawnies will decide to head home. |
| 07-28-2004, 12:43 PM | #4 |
For some reason i have the need to post here. I can think of one possiblity: check the spawnies for the neutral hostile and/or passive abiltiy named wander....that could be a cause... |
| 07-28-2004, 02:05 PM | #5 |
Until you actually figure out what the real problem is, why dont you just order them every 3 seconds or so to the region, so that when they turn back they are ordered to the region. |
| 07-28-2004, 07:44 PM | #6 |
I'm having the same problem here units just heading back where they came from, and then back to the ordered location and so on, as if patrolling |
| 07-29-2004, 03:03 PM | #7 |
I'm currently using multiple regions to solve this. I'm putting multiple regions at set intervals along the path, so that when the spawnies decide the head home, they don't have to go far before they get the order to attack move to the target destination again. Not perfect, but it's what I have to settle for right now. At least until I, or someone, finds out what causes this behaviour. |
| 07-29-2004, 03:23 PM | #8 |
There is an AI trigger called "AI - Disable all guard positions". You should run this trigger action after each spawn. Otherwise the units will patrol toward the desired location rather than simply attack-move. |
| 07-30-2004, 12:10 PM | #9 |
good call. thx a bunch |
| 08-01-2004, 01:33 PM | #10 |
Not sure if the guard position thing is the cause of it. But it looks like it. Rep for you. |
