API DoEmote

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

Arguments

 * ("token" [, "target"])


 * token : String - the token that describes which emote is being used. See Emotes Tokens


 * target : String - UnitId of who the emote will be performed on. If nil, then it performs the emote on your current target, or yourself if you don't have a target. If the specified target does not exist or is out of range, then it performs the emote on yourself.

Returns

 * nil

Example
DoEmote("cry");   -- Say you have 'Bob' selected. You see:  You cry on Bob's shoulder. -- If you have no target, you see:         You cry. DoEmote("cry","none"); -- Regardless of whether or not you have Bob selected, you will see: --  You cry.