Difference between revisions of "LUA:Emote"

(Created page with "= LUA Functions: Emote() = Causes the given spawn to send a chat emote. ==== Syntax ==== Emote(param1, param2 [param3], [param4]) ==== Parameters ==== ; Required - ''param1''...")
 
(No difference)

Latest revision as of 21:55, 15 October 2012

LUA Functions: Emote()

Causes the given spawn to send a chat emote.


Syntax

Emote(param1, param2 [param3], [param4])


Parameters

Required - param1 (Spawn), param2 (String)
param1 is the spawn sending the emote
param2 is the message
Optional - param3 (Spawn), param4 (Spawn)
param3 is the target of the emote
param4 is a player to send the emote to, must be a player


Usage

function hailed(NPC, Spawn)
    Emote(NPC, "looks upset.")
end

This will cause an emote message to be sent to all clients in range.


Notes

If param4 is set the message will only be sent to that player.


While param3 is intended to be the target it does not seem to actually be used any where.