No categories assigned

LUA:CloseConversation

Revision as of 21:30, 15 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: CloseConversation() = Closes the dialog between the spawn and a player. ==== Syntax ==== CloseConversation(param1, param2) ==== Parameters ==== ; Required - ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: CloseConversation()

Closes the dialog between the spawn and a player.


Syntax

CloseConversation(param1, param2)


Parameters

Required - param1 (Spawn), param2 (Spawn)
param1 is the spawn with an open dialog to the player
param2 is the player, must be a player


Usage

function close_dialog(NPC, Spawn)
    CloseConversation(NPC, Spawn)
end

This function would force the dialog between the NPC and the player to close.