1
0
EQ2Emu/docs/lua_functions/CloseDoor.md
2025-05-28 21:48:33 -04:00

17 lines
434 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: CloseDoor(DoorSpawn, DisableCloseSound)
**Description:** Closes an open door spawn, playing its closing animation and sound.
**Parameters:**
`DoorSpawn`: Spawn The door object to close.
`DisableCloseSound`: Boolean - Default is false, when set to true, no door close sound will be made.
**Returns:** None.
**Example:**
```lua
-- Example usage (close the door after some time or event)
CloseDoor(CastleGate)
```