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

14 lines
411 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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))