function disable_ui_only actor npc if db actor is_talking then db acto

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
function disable_ui_only(actor, npc)
if db.actor:is_talking() then
db.actor:stop_talk()
end
level.show_weapon(false)
if not p or (p and p[1] ~= "true") then
local slot = db.actor:active_slot()
if(slot~=0) then
ui_active_slot = slot
db.actor:activate_slot(0)
end
end
level.disable_input()
level.hide_indicators_safe()
local hud = get_hud()
hud:HideActorMenu()
hud:HidePdaMenu()
end