Lua functions

ToggleFollow

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

Historical signature: ToggleFollow(spawn)

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

Function: ToggleFollow(spawn)

Description: Toggle's the follow flag on or off depending on the Spawn's current setting.

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.

ToggleFollow(NPC)

Evidence: server/SpawnScripts/BeggarsCourt/Ro.lua:41; binding EQ2Emu_lua_ToggleFollow.

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