1
0
EQ2Emu/docs/lua_functions/SetInvulnerable.md
2025-05-15 09:50:31 -04:00

428 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)