Osiris/API/StartCameraSpline

From Divinity Engine Wiki
Revision as of 15:44, 13 December 2017 by Tinkerer (talk | contribs) (Documented StartCameraSpline)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call StartCameraSpline((SPLINEGUID)_Spline, (CHARACTERGUID)_Character, (REAL)_FadeTime, (INTEGER)_HideUI, (INTEGER)_Freeze, (INTEGER)_StartIndex)
Description

Makes the game camera for the user controlling _Character move along _Spline. The screen will start black and fade in during _FadeTime seconds when the spline starts, and fade out again over the same period before the end of the spline. If _Freeze is 1, the character gets story-frozen while the camera spline is active. _StartIndex specifies the index of the spline at which the camera should start.

The camera will move along the spline until it reaches the end of the spline.

Notes
  • Splines work as unskippable cut scenes. Be careful to keep them short as to not annoy players.
  • Before DOS2 Patch 6, camera splines do not get properly saved/restored to/from savegames.
See Also