Difference between revisions of "API UnitIsPlayer"

From Wowpedia
Jump to: navigation, search
(upgraded deprecated template)
Line 1: Line 1:
  +
{{wowapi}}
 
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
 
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
   
Line 23: Line 24:
 
--Do something here
 
--Do something here
 
end
 
end
 
----
 
{{WoW API}}
 

Revision as of 17:33, 6 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