mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
454 B
454 B
Function: SetInvulnerable(Spawn, Enable)
Description: Toggles an entity’s 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)