1
0
2025-05-28 21:48:33 -04:00

18 lines
424 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Function: IsOpen(DoorSpawn)
**Description:** Checks whether a given door spawn is currently open.
**Parameters:**
`DoorSpawn`: Spawn The door object to check.
**Returns:** Boolean true if the door is currently open; false if closed.
**Example:**
```lua
-- Example usage (guard reacts if the town gate is open past curfew)
if IsOpen(TownGate) then
Say(GuardNPC, "Close the gates for the night!")
end
```