Zone(Zone: Zone, Spawn: Player, Float: X, Float: Y, Float: Z, Float: Heading)
Pre-Requisite(s)
- Must obtain the Zone lua pointer, such as with GetZone(..)
Parameter(s)
Zone: Zone - Zone pointer of destination zone for Player.
Spawn: Player - Spawn LUA Pointer of Player type only.
Float: X (OPTIONAL) - If no XYZ specified, default will be safe coord X
Float: Y (OPTIONAL) - If no XYZ specified, default will be safe coord Y
Float: Z (OPTIONAL) - If no XYZ specified, default will be safe coord Z
Float: Heading (OPTIONAL) - If no heading will use safe heading.
Return(s)
- None
Example(s)
function hailed(NPC, Spawn)
if IsPlayer(Spawn) then
ZoneRef = GetZone("NorthFreeport")
Zone(ZoneRef,Spawn,-149.38, -50.6, -376.76, 204.84) – Send Player to NorthFreeport
end
end
Result
Additional Notes