Lua functions

SetSeeHide

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

Historical signature: SetSeeHide(…) via current binding

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

Function: SetSeeHide(entity, value)

Description: Changes spell-derived see-hide 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.

SetSeeHide(NPC,1)

Evidence: server/SpawnScripts/Cache/afetteredguard.lua:15; binding EQ2Emu_lua_SetSeeHide.

Current registration: WorldServer/Lua/LuaInterface.cpp.