Function: GetTarget(spawn)
Description: Gets the current target of the Spawn.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: Spawn object reference.
GetTargetRegistered in this checkout as EQ2Emu_lua_GetTarget; implementation found at WorldServer/Lua/LuaFunctions.cpp:870.
Historical signature: GetTarget(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the current target of the Spawn.
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: Spawn object reference.
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.
target = GetTarget(Spawn)
Evidence: server/ItemScripts/AutomaticBook.lua:14; binding EQ2Emu_lua_GetTarget.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.