1
0
EQ2Emu/docs/lua_functions/GetOrigY.md
2025-05-13 22:57:49 -04:00

411 B
Raw Blame History

Function: GetOrigY(Spawn)

Description: Returns the original Y coordinate (vertical position) of the spawns starting point in the zone.

Parameters:

Spawn: Spawn  The entity in question.

Returns: Float The Y coordinate of its original spawn location.

Example:

-- Example usage (for debugging an NPC's elevation change) print("NPC original Y: " .. GetOrigY(NPC) .. ", current Y: " .. GetY(NPC))