API UnitIsConnected

From Wowpedia
Jump to: navigation, search

Returns true if the unit is connected to the game (i.e. not offline), false otherwise.

isOnline = UnitIsConnected("unit")

Parameters

Arguments

unit
UnitId - The unit to query (e.g. "party1", "pet", "player")

Returns

isConnected
Boolean - true if the unit is connected to the game, false otherwise.