It is used for detecting hero and ping the person hero location (I find it kinda useful for dota)
if I were to use this, it can return me some neutral units as well
Code: Select all
return GetOwningPlayer(GetEnumUnit()) != Player(12)
return GetOwningPlayer(GetEnumUnit()) != Player(15)
return IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == true
return IsUnitEnemy(GetEnumUnit(), GetTriggerPlayer()) == true
also, i can't decide with getfilterunit() or getenumunit(), nor could I tell the difference between those