From aadc58ca474d2e99a9246f3e0fc581a2fa034812 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Mon, 1 Jul 2019 09:07:19 +0530 Subject: HDB: Add Lua function for killTrigger() --- engines/hdb/lua-script.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index b0adc96558..f9d0aa7039 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -838,7 +838,12 @@ static int removeInvItem(lua_State *L) { } static int killTrigger(lua_State *L) { - warning("STUB: KILL TRIGGER"); + char *id = (char *)lua_tostring(L, 1); + + g_hdb->_lua->checkParameters("killTrigger", 1); + + lua_pop(L, 1); + g_hdb->_ai->killTrigger(id); return 0; } -- cgit v1.2.3