Caching hand feasibility, disabling interactions if there are no hands
This commit is contained in:
7
media/lua/server/TOC/LimitActionsController.lua
Normal file
7
media/lua/server/TOC/LimitActionsController.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function ISObjectClickHandler.doClickCurtain(object, playerNum, playerObj)
|
||||
TOC_DEBUG.print("Opening door")
|
||||
|
||||
if not object:canInteractWith(playerObj) then return false end
|
||||
object:ToggleDoor(playerObj)
|
||||
return true
|
||||
end
|
||||
Reference in New Issue
Block a user