Wikia

WoWWiki

API UnitIsPlayer

Talk0
98,468pages on
this wiki
UnitIsPlayer(UnitId)

Determines if the unit is a player. It is important to note that it returns nil rather than false, nil is treated like false for most operations but it is *not* a proper boolean.


Arguments
UnitId

Returns
True/nil

Example
if (UnitIsPlayer(UnitId)) then
   --Do something here
else
   --Do something else
end
Advertisement | Your ad here

Photos

Add a Photo
61,982photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki