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

16 lines
468 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: OpenDoor(DoorSpawn)
**Description:** Opens a door spawn in the world. This will play the doors open animation and typically allow passage. The door remains open until closed by script or by its own auto-close timer if any.
**Parameters:**
`DoorSpawn`: Spawn The door object to open (must be a door interactive spawn).
**Returns:** None.
**Example:**
```lua
-- Example usage (open a secret door when puzzle is solved)
OpenDoor(SecretDoor)
```