# Restore Camera

Grammar — Restore the saved camera settings for player player over duration seconds with initialVelocity% initial velocity and decelerate% deceleration
FlagsNative | Action

Restores the camera to a previously saved configuration. You can save camera settings using “Save Camera”.

# Arguments

  • int — Player
  • fixed — Duration
  • fixed — Initial Velocity
  • fixed — Decelerate

Returns — void

native void CameraRestore(
	int player,
	fixed duration,
	fixed velocity,
	fixed decelerate,
);

Category: Camera / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L5587
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L11741
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L12097
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L12449
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L5686
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L5380
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L5282
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5661
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5942
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L7888
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L9684
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L10068
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L10407
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L10854
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L11427
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L5879
CameraRestore(gv_pLAYER_P01_USER, 0.0, -1, 10)
// L6695
CameraRestore(gv_pLAYER_P01_USER, 0.0, -1, 10)
// L6904
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L4973
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L6426
CameraRestore(gv_p01_PLAYER, 0.0, -1, 10)
// L5587
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L11741
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L12097
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L12449
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L5686
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L5380
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L5282
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5661
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5942
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L7888
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L9684
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L10068
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L10407
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L10854
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L11427
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L5879
CameraRestore(gv_pLAYER_P01_USER, 0.0, -1, 10)
// L6695
CameraRestore(gv_pLAYER_P01_USER, 0.0, -1, 10)
// L6904
CameraRestore(gv_p1_USER, 0.0, -1, 10)
// L4973
CameraRestore(gv_p01_USER, 0.0, -1, 10)
// L6426
CameraRestore(gv_p01_PLAYER, 0.0, -1, 10)
// L4641
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L7655
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6052
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5648
CameraRestore(gv_PLAYER_01_USER, 0.0, -1, 10.0)
// L11666
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L9117
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6767
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10.0)
// L7462
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6245
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L4641
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L7655
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6052
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5648
CameraRestore(gv_PLAYER_01_USER, 0.0, -1, 10.0)
// L11666
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L9117
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6767
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10.0)
// L7462
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6245
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L7584
CameraRestore(1, 0.0, -1, 10)
// L11397
CameraRestore(1, 0.0, -1, 10)
// L23238
CameraRestore(1, 0.0, -1, 10.0)
// L23383
CameraRestore(1, 0.0, -1, 10.0)

# campaigns/void.sc2campaign

MapScript.galaxy

// L2359
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5704
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6565
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10.0)
// L6391
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6735
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L2359
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L5704
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6565
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10.0)
// L6391
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L6735
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L9669
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L10074
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L9669
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)
// L10074
CameraRestore(gv_pLAYER_01_USER, 0.0, -1, 10)