Function: GetRunbackDistance(spawn)
Description: Gets the distance from the runback point for the current Spawn.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: Float distance from the runback point.
GetRunbackDistanceRegistered in this checkout as EQ2Emu_lua_GetRunbackDistance; implementation found at WorldServer/Lua/LuaFunctions.cpp:8146.
Historical signature: GetRunbackDistance(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the distance from the runback point for the current Spawn.
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: Float distance from the runback point.
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.
local distance = GetRunbackDistance(NPC)
Evidence: server/SpawnScripts/IsleRefuge1/aGruttoothsaboteur.lua:21; binding EQ2Emu_lua_GetRunbackDistance.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.