Caching hand feasibility, disabling interactions if there are no hands

This commit is contained in:
ZioPao
2024-03-21 19:37:30 +01:00
parent 0e911ec860
commit 1c990f3b9b
9 changed files with 133 additions and 31 deletions

View 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