- Joined
- Dec 9, 2014
- Messages
- 176
I'm making a pet system where after summoning a pet, it's then switched to computer control but told to follow your hero. I'm having trouble figuring out how to make the pet only attack when the hero is attacked or attacks and will attack the same target as the hero.
-
Penguin Setup
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Tybalt's Mechanical Penguin
-
Actions
- Set PenguinPet = (Triggering unit)
- Wait 0.10 seconds
- Unit - Change ownership of PenguinPet to Player 2 (Blue) and Retain color
- Unit - Order PenguinPet to Right-Click Sorceress
- Unit - Order PenguinPet to Right-Click Wizard
-
Events