1
0
EQ2Emu/docs/lua_functions/GetCurrentZoneSafeLocation.md

19 lines
407 B
Markdown

### Function: GetCurrentZoneSafeLocation(spawn)
**Description:**
Returns the X, Y, Z of the current zone safe location by using the supplied Spawn's zone.
**Parameters:**
- `spawn` (Spawn) - Spawn object representing `spawn`.
**Returns:** x,y,z as returned array.
**Example:**
```lua
function cast(Caster, Target)
x,y,z = GetCurrentZoneSafeLocation(Caster)
SetPosition(Caster, x, y, z)
end
```