No categories assigned

LUA:CloseConversation

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.