I'm trying to figure out how to make an ability, or behavior to make it so that one marine is followed by 3-4 other marines, or other units. I want them to be able to shoot different targets besides the main unit. If you need to know what i'm talking about more, look up Halo Wars marines. That's what i'm kinda looking for. Thanks!
A simple, but limited method would be to make the "squad mates" external magazine units (see: Broodlord), this allows automatic member management/replacement and leash, but ammo units are forced to attack the same target as the host if it is attacking. Ammo units also die if their host dies, but that can be worked around.
You could have the "leader" apply a search->persistent effect on the "squad mates" to periodically apply an Issue Order: Scan Movement (A-move) to Caster Point. Add a validator to switch to Move command if the caster is too far away, if you want the squad to stay together.
You should elaborate what the units should be able to do while following (e.g. player controllable; cast spells; follow any enemy until it's dead/always stick together even under fire; what happens if the leader dies; what happens if a random member dies...), how many of these "squads" you want also imposes some limits (you can't have 400+ units running Issue Order effects and range validators on a 0.0625 period)
I was able to achieve this a couple years back when I started editing by making the hydralisk like a protoss carrier, but instead of the units fly, they were ground. I set the units so that they couldnt get close enough to the Hydralisk. I was able to make the hydralisk attack and the little pup zerglings would run after what ever the Hydralisk was attacking sometimes other units too!
I have a published map that's private that I could show you, its locked now so I don't have the original map
Well, there is always the easiest way to achieve this... Yet visualy it won't look too good...
Just create a triger with 1s period to issue order to attack move at point of the triggering unit. ;DD
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to figure out how to make an ability, or behavior to make it so that one marine is followed by 3-4 other marines, or other units. I want them to be able to shoot different targets besides the main unit. If you need to know what i'm talking about more, look up Halo Wars marines. That's what i'm kinda looking for. Thanks!
How are these "squads" created?
A simple, but limited method would be to make the "squad mates" external magazine units (see: Broodlord), this allows automatic member management/replacement and leash, but ammo units are forced to attack the same target as the host if it is attacking. Ammo units also die if their host dies, but that can be worked around.
You could have the "leader" apply a search->persistent effect on the "squad mates" to periodically apply an Issue Order: Scan Movement (A-move) to Caster Point. Add a validator to switch to Move command if the caster is too far away, if you want the squad to stay together.
You should elaborate what the units should be able to do while following (e.g. player controllable; cast spells; follow any enemy until it's dead/always stick together even under fire; what happens if the leader dies; what happens if a random member dies...), how many of these "squads" you want also imposes some limits (you can't have 400+ units running Issue Order effects and range validators on a 0.0625 period)
I was able to achieve this a couple years back when I started editing by making the hydralisk like a protoss carrier, but instead of the units fly, they were ground. I set the units so that they couldnt get close enough to the Hydralisk. I was able to make the hydralisk attack and the little pup zerglings would run after what ever the Hydralisk was attacking sometimes other units too!
I have a published map that's private that I could show you, its locked now so I don't have the original map
Well, there is always the easiest way to achieve this... Yet visualy it won't look too good... Just create a triger with 1s period to issue order to attack move at point of the triggering unit. ;DD