API C_PlayerInfo.UnitIsSameServer

From Wowpedia
Jump to: navigation, search

Returns true if another player is from your own or connected realm.

unitIsSameServer = C_PlayerInfo.UnitIsSameServer(playerLocation)

Arguments

playerLocation 
table - PlayerLocationMixin

Returns

unitIsSameServer 
boolean

Example

Shows if your target is on the same (connected) realm.

/dump C_PlayerInfo.UnitIsSameServer(PlayerLocation:CreateFromUnit("target"))

Patch changes

See also