Function: GetOrigZ(Spawn)
Description: Returns the original Z coordinate of where the spawn was initially placed.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: Float – The Z position of the spawn’s original location.
GetOrigZRegistered in this checkout as EQ2Emu_lua_GetOrigZ; implementation found at WorldServer/Lua/LuaFunctions.cpp:12087.
Historical signature: GetOrigZ(Spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Returns the original Z coordinate of where the spawn was initially placed.
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: Float – The Z position of the spawn’s original location.
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 z = GetOrigZ(NPC)
Evidence: server/SpawnScripts/OutpostOverlord/acliffdiverhawk.lua:50; binding EQ2Emu_lua_GetOrigZ.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.