mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
702 B
702 B
Function: SetPosition(spawn, x, y, z, heading)
Description: Set's the current position of the Spawn to the x,y,z,heading provided.
Parameters:
spawn(Spawn) - Spawn object representingspawn.x(int32) - Integer valuex.y(int32) - Integer valuey.z(int32) - Integer valuez.heading(int32) - Integer valueheading.
Returns: None.
Example:
-- From SpawnScripts/Commonlands/ExecutionerSelindi.lua
function LeaveRange(NPC,Spawn)
if HasCompletedQuest(Spawn,5890) and CanReceiveQuest(Spawn,5891) then
SetPosition(Spawn,-1344.42, -69.53, 333.57, 218.64)
PlayFlavor(NPC,"","Hey! I need to speak with you!","beckon",0,0,Spawn)
end