Lua functions

BlurVision

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

Historical signature: BlurVision(…) via current binding

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

Function: BlurVision(spawn, intensity)

Description:

Sets the entity's drunk/blurred-vision value. When the current spell has targets, applies the value to those entity targets instead; otherwise uses spawn. Changed Players receive a character sheet update.

Parameters:

  • spawn (Spawn) - Entity used when there is no current spell target list.
  • intensity (number) - Value written to the drunk/blurred-vision field.

Returns: None.

Original spell targets: When this function uses a spell's target list, it snapshots references to the originally selected actor allocations. It skips unavailable or departed targets instead of selecting another actor with a reused runtime ID. Accepted actors remain physically retained through the active protected callback, including Lua errors; saved userdata and target records do not keep them alive between callbacks. Explicit Spawn arguments retain their existing selection behavior. See Lua actor lifetime.

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.

BlurVision(Target, 0)

Evidence: server/Spells/Commoner/Blind.lua:28; binding EQ2Emu_lua_BlurVision.

Current registration: WorldServer/Lua/LuaInterface.cpp.