WoW:API DoEmote: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Added an example for the target as the previous information was incorrect (not the player name, but the word 'target' or 'targettarget')) |
||
Line 15: | Line 15: | ||
:("token", "message") | :("token", "message") | ||
:;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 | :;message : String - target for the emote. For example: DoEmote("dance", target) will cause you to dance with your target. | ||
---- | ---- |
Revision as of 14:48, 8 February 2008
DoEmote("token", "message");
Executes an emote.
- Arguments
- ("token", "message")
- token
- String - the token that describes which emote is being used. See Emotes Tokens
- message
- String - target for the emote. For example: DoEmote("dance", target) will cause you to dance with your target.
- Returns
- Nothing.
- Details
- Executes one of the emotes based on the given token, including vocal emotes. The list of currently valid emotes is given in ChatFrame.lua, defined as one of the EMOTEx_TOKEN constants. x starts at 1 and currently goes up to 171 (as of 2.1.2). Certain emotes may also trigger character animations and sound effects.