Manix
Well-Known Member
- Reaction score
- 29
So, I'm trying to prevent team killing but it does not happen ...
That's the trigger, but when i test it, I'm attacking an ally and the Mur Slaves only appear and do nothing.. Please help me ;(
Code:
Prevent Team Kill
Events
Unit - A unit Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacking unit)) is an ally of Player 1 (Red)) Equal to True
(Percentage life of (Attacked unit)) Greater than 5.00
Then - Actions
Unit - Create 1 Mur'gul Slave for Neutral Hostile at (Center of Region 014 <gen>) facing Default building facing degrees
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Add Hex to (Last created unit)
Unit - Order (Last created unit) to Orc Shadow Hunter - Hex (Attacking unit)
Else - Actions
Unit - Create 1 Mur'gul Slave for Neutral Hostile at (Center of Region 014 <gen>) facing Default building facing degrees
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Add Hex to (Last created unit)
Unit - Order (Last created unit) to Orc Shadow Hunter - Hex (Attacking unit)
That's the trigger, but when i test it, I'm attacking an ally and the Mur Slaves only appear and do nothing.. Please help me ;(