[Mod-Assets] Keys in locks. (re-usable keys)

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Vandalar
Posts: 31
Joined: Sun Jan 18, 2015 6:05 pm
Location: Montreal, Canada

Re: [Mod-Assets] Keys in locks. (re-usable keys)

Post by Vandalar »

Then, I beleive this should do the trick (add inside a function and associate it with onInsertItem hook of the lock):

Code: Select all

	local itemObj = self.go.socket:getItem()
	itemObj.go.item:disable()
Vand
Post Reply