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

454 B
Raw Blame History

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:

-- Example usage (make an NPC invulnerable during a dialogue scene)
SetInvulnerable(QuestNPC, true)