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

16 lines
490 B
Markdown
Raw 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: ClearEncounter(Spawn)
**Description:** Clears the encounter association for the given spawn. In EQ2, NPCs engaged in combat are part of an “encounter” group. This function removes the spawn from any encounter, effectively resetting its fight grouping.
**Parameters:**
`Spawn`: Spawn The NPC or player whose encounter to clear.
**Returns:** None.
**Example:**
```lua
-- Example usage (after battle ends, remove any leftover encounter tags)
ClearEncounter(NPC)
```