You are viewing an old version of this page. Return to the latest version.
Version of 18:16, 16 October 2012 by I need to Update My Profile
No categories assigned
LUA:GetCurrentZoneSafeLocation
- Last edited 13 years ago by I need to Update My Profile
LUA Functions: GetCurrentZoneSafeLocation()
Returns the safe location for the zone that the given spawn is in.
Syntax
x,y,z = GetCurrentZoneSafeLocation(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn whos zone we are getting the location for
Usage
function cast(Caster, Target)
x,y,z = GetCurrentZoneSafeLocation(Caster)
SetPosition(Caster, x, y, z)
end
A simple escape spell to move the caster to the zones safe location.