Lua functions

GetOrigX

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

Historical signature: GetOrigX(Spawn)

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

Function: GetOrigX(Spawn)

Description: Returns the original X coordinate of the specified spawn’s spawn point (where it was initially placed in the zone).

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: Float – The X position of the spawn’s original location.

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.

local x = GetOrigX(NPC)

Evidence: server/SpawnScripts/OutpostOverlord/acliffdiverhawk.lua:48; binding EQ2Emu_lua_GetOrigX.

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