Returns whether a unit is connected (i.e. not Offline)


See also Unit functions.

Signature:

isConnected = UnitIsConnected("unit")

Arguments:

  • unit - A unit to query (string, unitID)

Returns:

  • isConnected - 1 if the player is connected; otherwise nil (1nil)