12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

980 Part IV ■ <strong>Reference</strong>Returns:isPossessed—1 if the given unit is possessed; otherwise nil (1nil)UnitIsRaidOfficerReturns whether a unit is a raid assistant in the player’s raid.leader = UnitIsRaidOfficer(“unit“) or UnitIsRaidOfficer(“name“)Arguments:unit—A unit to query (string, unitID)name—The name <strong>of</strong> a unit to query (string)Returns:leader—1 if the unit is a raid assistant; otherwise nil (1nil)UnitIsSameServerReturns whether two units are from the same server.isSame = UnitIsSameServer(“unit“, “unit“)Only meaningful in cross-realm battlegrounds.Arguments:unit—A unit (string, unitID)unit—Another unit (string, unitID)Returns:isSame—1 if the two units are from the same server; otherwise nil. (1nil)UnitIsSilencedReturns whether a character is silenced on a voice channel.silenced = UnitIsSilenced(“name“, “channel“)Arguments:name—Name <strong>of</strong> a character (string)channel—Name <strong>of</strong> a chat channel (string)Returns:silenced—1 if the unit is silenced on the given channel; otherwise nil (1nil)UnitIsTalkingReturns whether a unit is currently speaking in voice chat.state = UnitIsTalking(“unit“)Despite the ‘‘unit’’ name, this function only accepts player names, not unitIDs.Arguments:unit—Name <strong>of</strong> a character in the player’s current voice channel (string)Returns:state—1 if the unit is currently speaking in voice chat; otherwise nil (1nil)UnitIsTappedReturns whether a unit is tapped.UnitIsTapped(unit)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!