WoW:API UnitIsFriend: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
/script if (UnitIsFriend("player","target")) then AssistUnit("target"); end
/script if (UnitIsFriend("player","target")) then AssistUnit("target"); end
Note: in the context of this function, "friend" is any PC in your faction or any NPC that is friendly towards you (i.e. is green if you target it). It has nothing to do with whether you have added the unit to your friends list or not.

Revision as of 14:13, 25 May 2005

/script if (UnitIsFriend("player","target")) then AssistUnit("target"); end

Note: in the context of this function, "friend" is any PC in your faction or any NPC that is friendly towards you (i.e. is green if you target it). It has nothing to do with whether you have added the unit to your friends list or not.