Lua functions

Stealth

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

Historical signature: Stealth(type, spawn)

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

Function: Stealth(type, spawn)

Description: Type of 1 is stealth, 2 is invis. If Spawn is specified will only apply to Spawn, otherwise applied to all spell targets in a Spell Script.

Parameters:

  • type (int8) - Integer value type.
  • 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.

Stealth(1, Caster)

Evidence: server/Spells/ClassicRefresh/Scout/Predator/Assassin/Concealment-2551169.lua:25; binding EQ2Emu_lua_Stealth.

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