Historical signature: SetFollowTarget(spawn, target, follow_distance)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: SetFollowTarget(spawn, target, follow_distance)
Description:
Set's the spawns follow target and the optional follow_distance.
Parameters:
spawn (Spawn) - Spawn object representing spawn.
target (Spawn) - Spawn object representing target.
follow_distance (uint32) - Distance follow_distance.
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.
SetFollowTarget(NPC, spawnKingZalak, 5)
Evidence: server/SpawnScripts/TowerOfZarvonn/royalpatriarch.lua:20; binding EQ2Emu_lua_SetFollowTarget.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.