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

17 lines
454 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: SetInvulnerable(Spawn, Enable)
**Description:** Toggles an entitys invulnerability. When set to true, the spawn will not take damage from any source.
**Parameters:**
`Spawn`: Spawn The entity to modify.
`Enable`: Boolean true to make invulnerable; false to remove invulnerability.
**Returns:** None.
**Example:**
```lua
-- Example usage (make an NPC invulnerable during a dialogue scene)
SetInvulnerable(QuestNPC, true)
```