WoW:API StartDuelUnit: Difference between revisions

m
Move page script moved page API StartDuelUnit to WoW:API StartDuelUnit without leaving a redirect
No edit summary
 
m (Move page script moved page API StartDuelUnit to WoW:API StartDuelUnit without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Invites a player to a duel. The player is designated by a [[API TYPE UnitId|UnitID]].
{{wowapi}}__NOTOC__
{{removedapi|2.0|For alternatives, try [[API StartDuel|StartDuel]]}}
 
Invites a player to start a duel.


  StartDuelUnit("unit");
  StartDuelUnit("unit");
== Parameters ==
=== Arguments ===
:("unit")


----
:;unit : String - The name of the player to invite to duel.
;''Arguments''
=== Returns ===
 
:nil
:(String unit)
 
:;unitID (examples are "target" and "party1")
 
----
;''Returns''
 
:;nil
 
----
;''Example''
StartDuelUnit("target");
 
;''Result''
 
:Will invite the currently targetted player to a duel.


----
== Example ==
{{Template:WoW API}}
:This function can be called with the varibale "unit" as the player that should be invited to duel.
function startDuel(unit)
  StartDuelUnit(unit);
end
Anonymous user