Difference between revisions of "LUA:GetCurrentZoneSafeLocation"
(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) ...") |
|||
| Line 22: | Line 22: | ||
A simple escape spell to move the caster to the zones safe location. | 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. | ||
Latest revision as of 18:18, 16 October 2012
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.