No categories assigned

LUA:GetCurrentZoneSafeLocation

Revision as of 18:16, 16 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetCurrentZoneSafeLocation() = Returns the safe location for the zone that the given spawn is in. ==== Syntax ==== x,y,z = GetCurrentZoneSafeLocation(param1) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.