| 10-26-2005, 07:12 PM | #1 |
I am making a map where a monster is suppose to chase all the runners, but the problem is that it goes back to its original starting point after it runs for awhile. |
| 10-27-2005, 02:13 AM | #2 |
units owned by neutral players have a camp. they automatically return to the camp when they get too farm from their camp location. Give the units to a Computer Player, and they should continue chasing. |
| 10-27-2005, 11:27 AM | #3 |
I aint using neutral. Currently I am using Brown but he keeps returning. |
| 10-27-2005, 12:22 PM | #4 |
what order are you giving the unit? attack move? move? attack (with a target)? patrol? do you randomly reissue the order? post any triggers that orcer the chaser. (right click: copy as text when in the WE. helps allot when posting triggers) |
| 10-27-2005, 01:22 PM | #5 |
Hang on, don't computer players, if you designate them as a computer and set the system to have 'fixed player settings' have their own ai that can screw up the forced ordering? It's been a while since I've tried to give forced orders like that. My only other theory is that the computer just can't see the unit it's supposed to be 'following', perhaps give shared vision of the units to the computer? |
| 10-27-2005, 01:43 PM | #6 | |
Quote:
AI scripts are only loaded on a command from a trigger. the default mele triggers load AI for any present computer players. Nothing else (well, in the level of edditing we are talking about here) will load an AI. |
| 10-27-2005, 02:59 PM | #7 |
I am using Attack-Move. And I have a region that follows all the player and will move to that location with attack move. But they give up after awhile... I'm testing the fix player setting. |
| 10-27-2005, 03:00 PM | #8 | |||
Well without fix player setting there is no comp. Well here are the trigger i use. Start up so that it random which marine to kill first. Quote:
This is the example for Attack 1. This is suppose to chase him till he is dead anyway. Quote:
Regions - Player 1 example Quote:
The reason why I use Wait is because if without it, it will freeze at the loading screen because the trigger are doing this continously too fast that is freezes. But really Wait doesn't affect the anything, just to slow it down. Also With the randoming, I am giving the marines a chance so if their the 1 that the zergling are after, they can divert. Otherwise if I make them attack-move to the home area u can just hide from them. But that isn't the goal. |
| 10-28-2005, 12:21 AM | #9 |
that will cause massive lag and an exssesive leave time. (due to location memory leaks) give me a more detailed explination of your map, and i will be able to give you a trigger. (how many zerglings? can the marines build? ext) |
| 10-28-2005, 12:25 AM | #10 |
Zerg is blocked with abunch of Burrow that takes 8 hits of 2222 to die, Marines runs while burrow is dying and when it is, they attack move to the randomized player. |
| 10-28-2005, 12:30 AM | #11 | |
Quote:
why not have the zerglings directly attack a player (issue the order once!) and if the zergling is attacked, make it attack move at its own location. and if it is issued the stop order, make it chase another player. Also, avoid triggers that run more then every 1/2 a secont. i may make you an example map if you cannot figure out its workings. |
| 10-28-2005, 06:02 AM | #12 |
Here's a question... why do you center the region on the marine, then order the enemy to a-move to the center of the region.... wouldn't it be easier to just order the enemy to a-move to the position of the marine instead? And don't worry about memory leaks (yet), two locations per second is... well, it's not nice, but we can easily live with it. Unless you have more leaky triggers that run often... |
| 11-03-2005, 06:02 PM | #14 |
Just do: Code:
Every X seconds Order <Monster> to attack-move to <position of unit> targetted Marine (variable) and then have Code:
Every X seconds Set targetted_marine to be random unit from units of type <Marine> That's a much simpler way of doing it. |
| 11-05-2005, 04:04 PM | #15 |
Have you done it yourself? |
