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.
Note
This function returns 3 values so you need 3 variables as shown in the example.