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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 955ProtectedProtectedTargetNearestRaidMemberCycles targets through nearby raid members.TargetNearestRaidMember(backward)Arguments:backward—Reverses direction <strong>of</strong> target cycling if true (as with the default TABvs. SHIFT-TAB bindings) (boolean)TargetTotemTargets one <strong>of</strong> the player’s totems (or a Death Knight’s ghoul).TargetTotem(slot)Totem functions are also used <strong>for</strong> ghouls summoned by a Death Knight’s RaiseDead ability (if the ghoul is not made a controllable pet by the Master <strong>of</strong>Ghouls talent).Arguments:slot—Which totem to target (number)1—Fire (or Death Knight’s ghoul) 3—Water2—Earth4—AirProtectedTargetUnitTargets a unit.TargetUnit(“unit“) or TargetUnit(“name“ [, exactMatch])Passing nil is equivalent to calling ClearTarget()).Arguments:unit—A unit to target (string, unitID)name—Name <strong>of</strong> a unit to target (string)exactMatch (optional)—True to check only units whose name exactlymatches the name given; false to allow partial matches (boolean)TaxiGetDestXReturns the horizontal coordinate <strong>of</strong> a taxi flight’s destination node.dX = TaxiGetDestX(source, dest)Used in the default UI to draw lines between nodes; TaxiNodeSetCurrent()should be called first so the client can compute routes.Only returns valid data while interacting with a flight master (i.e. between theTAXIMAP_OPENED <strong>and</strong> TAXIMAP_CLOSED events).Arguments:source—Index <strong>of</strong> the source flight point (between 1 <strong>and</strong> NumTaxiNodes())(number)dest—Index <strong>of</strong> the destination flight point (between 1 <strong>and</strong> NumTaxiNodes())(number)

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

Saved successfully!

Ooh no, something went wrong!