Lua functions

UseWidget

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

Historical signature: UseWidget(widget)

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

Function: UseWidget(widget)

Description: Use or Trigger a widget/object, such as in the context of opening or closing a door.

Parameters:

  • widget (Spawn) - Spawn object representing widget.

Returns: None.

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.

UseWidget(NPC)

Evidence: server/SpawnScripts/ElddarGrove/TransportTreeLift.lua:20; binding EQ2Emu_lua_UseWidget.

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