1
0
EQ2Emu/docs/lua_functions/GetOrigY.md

25 lines
573 B
Markdown
Raw Permalink 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) - Spawn object representing `spawn`.
**Returns:** Float The Y position of the spawns original location.
**Example:**
```lua
-- From SpawnScripts/OutpostOverlord/acliffdiverhawk.lua
function ReturnHome(NPC)
local x = GetOrigX(NPC)
local y = GetORigY(NPC)
local z = GetOrigZ(NPC)
if IsInCombat(NPC) == false then
MoveToLocation(NPC, x, y, z, 5)
end
```