Function: GetX(spawn)
Description: Current X position of the spawn.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: Float X of the spawn.
GetXRegistered in this checkout as EQ2Emu_lua_GetX; implementation found at WorldServer/Lua/LuaFunctions.cpp:3785.
Historical signature: GetX(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Current X position of the spawn.
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: Float X of the spawn.
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 = GetX(NPC)
Evidence: server/SpawnScripts/Baubbleshire/aBaubbleshirerat.lua:30; binding EQ2Emu_lua_GetX.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.