Thread: Keybinding
View Single Post
04/22/22, 07:53 AM   #9
Askedal
Join Date: Aug 2017
Posts: 9
Unfortunately this doesn't do anything. I have the EndLooting() already in my code and it is called every time.

Code:
num = GetNumLootItems()

	if (num == 0 ) then
		PlayLootSound(0,true)
		EndLooting()
	end

I tried to replace it with LOOT_SHARED:Hide(), even tried calling it multiple times, but the behavior stayed the same. When I tried to put in some wait cycles the other week, sometimes the loot window disappeared for containers, but I couldn't keep the waits in the code, they made it so slow and nearly unusable. Maybe it is a timing problem ? Is there a loot window for containers (e.g. CONTAINER_SHARED ??) that I can close / hide ?

Many thanks for your help
  Reply With Quote