WoW:API StartDuelUnit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
Invites a player to a duel. The player is designated by a [[API TYPE UnitId|UnitID]].
{{wowapi}}__NOTOC__
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)
== Example ==
:This function can be called with the varibale "unit" as the player that should be invited to duel.
function startDuel(unit)
  StartDuelUnit(unit);
end


:;unitID (examples are "target" and "party1")
--[[User:Bull3t|Bull3t]] 11:50, 27 September 2006 (EDT)
 
----
;''Returns''
 
:;nil
 
----
;''Example''
StartDuelUnit("target");
 
;''Result''
 
:Will invite the currently targetted player to a duel.
 
----
{{Template:WoW API}}

Revision as of 15:50, 27 September 2006

WoW API < StartDuelUnit

Invites a player to start a duel.

StartDuelUnit("unit");

Parameters

Arguments

("unit")
unit
String - The name of the player to invite to duel.

Returns

nil

Example

This function can be called with the varibale "unit" as the player that should be invited to duel.
function startDuel(unit)
  StartDuelUnit(unit);
end

--Bull3t 11:50, 27 September 2006 (EDT)