WoW:API DoEmote: Difference between revisions

m
no edit summary
(Added an example for the target as the previous information was incorrect (not the player name, but the word 'target' or 'targettarget'))
mNo edit summary
Line 3: Line 3:
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->


DoEmote("token", "message");
DoEmote("token"[, "target"]);


<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
Line 13: Line 13:
<!-- List each argument, together with its type -->
<!-- List each argument, together with its type -->


:("token", "message")
:("token", "target")
:;token : String - the token that describes which emote is being used.  See [[API_TYPE_Emotes_Token|Emotes Tokens]]
:;token : String - the token that describes which emote is being used.  See [[API_TYPE_Emotes_Token|Emotes Tokens]]
:;message : String - target for the emote.  For example: DoEmote("dance", target) will cause you to dance with your target.
:;target : String - target for the emote.  For example: DoEmote("dance", "target") will cause you to dance with your target. Takes a [[UnitId|unit]] token.


----
----
Anonymous user