Lua functions

SetSeeInvis

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

Historical signature: SetSeeInvis(…) via current binding

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

Function: SetSeeInvis(entity, value)

Description: Changes spell-derived see-invisible status. A changed status for a connected player requests a zone visibility refresh.

Parameters: entity: Player or NPC Entity spawn. Integer value: exactly 1 enables the effect; other values disable it.

Returns: None. Invalid/non-entity input has no effect.

Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.

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.

SetSeeInvis(NPC,1)

Evidence: server/SpawnScripts/DownBelow_Classic/AFallenPrince.lua:17; binding EQ2Emu_lua_SetSeeInvis.

Current registration: WorldServer/Lua/LuaInterface.cpp.