Jump to content

Majii

Member
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Majii

  1. I've been noticing an odd behavior that originally left me wondering if the modification was functioning or not since I would rarely come across a door I could pick or break the lock on. After a little debugging I've finally found an odd case. There are a number of doors that fail the isValidDoor check while being valid doors. local function isValidDoor(door) if not door then print("No valid door found."); return false; elseif door:IsOpen() then print("The door is already open."); return false; elseif not door:isLocked() then print("Door is locked... Why is this a problem?"); return false; elseif not door:getBarricade() == 0 then print("Door is barricaded. You can't get in that way."); return false; elseif not door:getSquare():getProperties():Is(IsoFlagType.exterior) then print("Door is inside of house."); return false; else return true; endendParticularly they fail at elseif not door:getSquare():getProperties():Is(IsoFlagType.exterior) thenExamples that I have come across are the motel rooms at the Sunstar in Muldraugh. They are exterior doors, but detected as interior doors. Edit: Also, two handed items have a habit of not being equipped correctly when it automatically swaps back after picking a lock. Looks like it detects the item as being in both the primary and secondary so it equips the item accordingly with it ending up in the secondary position.
×
×
  • Create New...