I am trying to make it so that an AI Hero are escorting a player Hero, somewhat similar to the Lab mission where Raynor escorts Kerrigan.
On this map there are two heroes whom are a team. The player will control one hero and the computer ally will control the other. The player can switch which hero to control with an ability that has a hefty cooldown. The two heroes have a different set of abilities.
I want the hero that are not under the player's control to follow the player hero and assist with auto-attack. I have tried to use the escort AI trigger to create this effect but has so far not been successful.
I have used these triggers
AI - Set the target for player 2 attack waves to be escorting unit group JaneUnitGroup with replace behavior Replace Never. This version will leash.
AI - Add Hamilton to the next attack wave for player 2, the unit is specifically assigned to escort Jane offset by 7.0 towards 0.0 degrees.
AI - Send the attack wave from player 2 to attack in 0 seconds and Don't Wait
player 2 have start campaign ai set.
It doesn't work. I wonder if this is because an AI will not be able to escort a player unit no matter what and that I should give up on this solution entirely.
I also wonder if there are another easy way to mimick this effect? I have tried to look at the "leash" ability to Lab Raynor on the Lab mission but I was not able to successfully copy it.
I had hoped the solution could just be a simple escort enabling through AI. I guess not.
I tried to create a set of issue order triggers that could guide the non-playable hero but it was a bit clumsy and very reacting a bit wierd. If I could get the heroes to treat each other like Raynor treat Kerrigan in the second lab mission in HotS I would be saved.
Anyhoo, I'll upload the map here in case someone is interested enough to take a peak.
Perhaps it could work if I made an invisible empty AI unit always follow the player Hero and then make the AI Hero escort that unit. Althought it is a complicated solution for something that should be quite simple.
I am trying to make it so that an AI Hero are escorting a player Hero, somewhat similar to the Lab mission where Raynor escorts Kerrigan.
On this map there are two heroes whom are a team. The player will control one hero and the computer ally will control the other. The player can switch which hero to control with an ability that has a hefty cooldown. The two heroes have a different set of abilities.
I want the hero that are not under the player's control to follow the player hero and assist with auto-attack. I have tried to use the escort AI trigger to create this effect but has so far not been successful.
I have used these triggers
AI - Set the target for player 2 attack waves to be escorting unit group JaneUnitGroup with replace behavior Replace Never. This version will leash.
AI - Add Hamilton to the next attack wave for player 2, the unit is specifically assigned to escort Jane offset by 7.0 towards 0.0 degrees.
AI - Send the attack wave from player 2 to attack in 0 seconds and Don't Wait
player 2 have start campaign ai set.
It doesn't work. I wonder if this is because an AI will not be able to escort a player unit no matter what and that I should give up on this solution entirely.
I also wonder if there are another easy way to mimick this effect? I have tried to look at the "leash" ability to Lab Raynor on the Lab mission but I was not able to successfully copy it.
you have to make an ai player and activate the ai. I personally hate the AI, i recommend you code it the long way.
@SoulTaker916: Go
I had hoped the solution could just be a simple escort enabling through AI. I guess not.
I tried to create a set of issue order triggers that could guide the non-playable hero but it was a bit clumsy and very reacting a bit wierd. If I could get the heroes to treat each other like Raynor treat Kerrigan in the second lab mission in HotS I would be saved.
Anyhoo, I'll upload the map here in case someone is interested enough to take a peak.
Perhaps it could work if I made an invisible empty AI unit always follow the player Hero and then make the AI Hero escort that unit. Althought it is a complicated solution for something that should be quite simple.
you could do like a carrier that always deployed,
add the support units to a magazine with a lease.
@SoulTaker916: Go
There are 2 tutorials here. You need the 2nd one: http://www.sc2mapster.com/forums/resources/tutorials/17420-data-ai-simple-behaviors/