Lua functions

ResetIllusion

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

Historical signature: ResetIllusion(spawn)

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

Function: ResetIllusion(spawn)

Description: Remove the current illusion from a spawn, the spawn parameter is optional, inside spell script resets all spell targets illusion.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

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.

ResetIllusion(Target)

Evidence: server/Spells/Commoner/GenericGenderDisguise.lua:18; binding EQ2Emu_lua_ResetIllusion.

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