Wikia

WoWWiki

API UnitIsSameServer

Talk0
98,461pages on
this wiki
Revision as of 22:18, January 5, 2011 by TimothyLuke (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

 

UnitIsSameServer(UnitId, UnitId)

Determines if the two units supplied are from the same server. 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 (UnitIsSameServer(UnitId, "player")) then
   --Unit is from the same server as the player
else
   --Unit is from a different server
end
Advertisement | Your ad here

Photos

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

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki