Skip to main content

AreaTransitionXYZ

Description

This function is defined by SGlFunc.lur and primarily uses PlayerSetPosXYZArea and AreaDisableCameraControlForTransition to do its job.

function AreaTransitionXYZ(id, x, y, z, state) --[[ ... ]] end

Parameters

  • id: integer - The area ID to which the player will be moved.
  • x: number - The X coordinate of the location where the player will be moved.
  • y: number - The Y coordinate of the location where the player will be moved.
  • z: number - The Z coordinate of the location where the player will be moved.
  • state: boolean - Disable camera control.

Return Values

None.

Example

Transition to the front of the boy's dorm without fading the camera out.

AreaTransitionXYZ(0, 270, -110, 6, true)

See Also