Lua functions

GetFollowTarget

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

Historical signature: GetFollowTarget(Spawn)

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

Function: GetFollowTarget(Spawn)

Description: Retrieves the current follow target of a given NPC or pet. If the spawn is following someone, this returns the entity being followed.

Parameters:

  • spawn (Spawn) – Spawn object representing NPC (or player’s pet) that might be following a target.

Returns: Spawn – The entity that Spawn is currently following, or nil if it’s not following anyone.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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