B
Boni
Guest
how do i make that allies cant attack each other like in DOTA ?
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True
Actions
Unit - Order (Attacking unit) to Stop
AceHart said:Code:Events Unit - A unit Is attacked Conditions ((Attacking unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True Actions Unit - Order (Attacking unit) to Stop
The order can be found in: Unit - Issue order with no target.
Dargoth said:were do u find the condition that lets u make attacking unit blong to attacked unit ? please help!
AceHart said:> (All player matching ((Owner of (Attacking unit)) equal to (matching player )))
This looks, indeed, weird. Working or not.
Anyway, I'd like to recommend "convert player to player-group" here.