WoW:API UnitIsPlayer: Difference between revisions

From AddOn Studio
Jump to navigation Jump to 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

WoW API < UnitIsPlayer

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