Lua functions

IsInvulnerable

Registered in this checkout as EQ2Emu_lua_IsInvulnerable; implementation found at WorldServer/Lua/LuaFunctions.cpp:13796.

Historical signature: IsInvulnerable(spawn)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: IsInvulnerable(spawn)

Description: Return's true if spawn is set to invulnerable.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: True if Spawn invulnerable otherwise false.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

local invul = IsInvulnerable(Spawn)

Evidence: server/RegionScripts/exp04_dun_chardok/char_p10_crossbridge_pit01_region.lua:5; binding EQ2Emu_lua_IsInvulnerable.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.