C-Death
I love you
- Reaction score
- 45
Hey, i was wondering if it is possible to make a unit (like a creep) netural untill you attack it. Thanks.
Attack Swap
Events
Unit - A unit Is attacked
Conditions
(Owner of (Attacked unit)) Equal to Neutral Hostile
Actions
Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
Attack Swap
Events
Unit - A unit Is attacked
Conditions
(Owner of (Attacked unit)) Equal to Neutral Passive
Actions
Unit - Change ownership of (Attacked unit) to Neutral Hostile and Change color
The trigger above me seems to change a neutral hostile-unit to the side of the player attacking. If you want a neutral to change into hostile when attacked, you should originally place / spawn the unit to Neutral Passive, then do this:
Code:Attack Swap Events Unit - A unit Is attacked Conditions (Owner of (Attacked unit)) Equal to Neutral Passive Actions Unit - Change ownership of (Attacked unit) to Neutral Hostile and Change color