mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
573 B
573 B
Function: GetOrigY(Spawn)
Description: Returns the original Y coordinate (vertical position) of the spawn’s starting point in the zone.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: Float – The Y position of the spawn’s original location.
Example:
-- 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