Difference between revisions of "API UnitIsPlayer"

From Wowpedia
Jump to: navigation, search
(upgraded deprecated template)
m (Robot: converting/fixing HTML)
Line 8: Line 8:
 
;''Arguments''
 
;''Arguments''
   
:<i>[[API_TYPE_UnitId|UnitId]]</i>
+
:''[[API_TYPE_UnitId|UnitId]]''
   
 
----
 
----
 
;''Returns''
 
;''Returns''
   
:<i>True/False</i>
+
:''True/False''
   
 
----
 
----

Revision as of 09:37, 20 January 2007

Game Flavors
Links
Patch
Added in 1.1.0 / 1.13.2
UnitIsPlayer(UnitId)

Determines if the unit is a player.


Arguments
UnitId

Returns
True/False

Example
if (UnitIsPlayer(UnitId)) then
   --Do something here
elseif (UnitIsPlayer(UnitId) ~= nil) then
   --Do something here
end