# Apply Camera Object

Grammar — Apply c for player player over duration seconds with initialVelocity% initial velocity, decelerate% deceleration, and useTarget|Include/Don’t Include Target
FlagsNative | Action

Sets a players camera to a camera object. If you choose to Include Target, then the specified player*“s camera will also jump to the target point of the specified camera object. Otherwise, only the camera object”*s properties will be applied to the specified player’s camera.

# Arguments

  • int — Player
  • camerainfo — Camera Object
  • fixed — Duration
  • fixed — Initial Velocity
  • fixed — Decelerate
  • bool [ preset::CameraUseTargetOption ] — Use Target

Returns — void

native void CameraApplyInfo(
	int player,
	camerainfo c,
	fixed duration,
	fixed velocity,
	fixed decelerate,
	bool useTarget,
);

Category: Camera / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L722
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L1355
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1710), 0.0, -1, 10, true)
// L1361
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1711), (SoundLengthSync(SoundLink("ChallengescombinedExecutor00034", -1)) - 1.0), -1, 10, true)
// L1369
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1708), 0.0, -1, 10, true)
// L1370
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1709), (SoundLengthSync(SoundLink("ChallengescombinedExecutor00048", -1)) - 0.0), -1, 10, true)
// L1399
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1703), 0.0, -1, 10, true)
// L1401
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1704), 0.0, -1, 10, true)
// L1403
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1705), 0.0, -1, 10, true)
// L1405
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(248), 0.0, -1, 10, true)
// L1407
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1706), 0.0, -1, 10, true)
// L913
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L995
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L1156
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L1337
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L2862
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(59), 0.0, -1, 10, true)
// L2863
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(63), SoundLengthSync(SoundLink("ChallengescombinedExecutor00015", -1)), -1, 10, true)
// L2874
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(64), 0.0, -1, 10, true)
// L2878
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(66), 0.0, -1, 10, true)
// L2880
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(67), 0.0, -1, 10, true)
// L2882
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(68), 0.0, -1, 10, true)
// L741
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L1682
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(79), 0.0, -1, 10, true)
// L1696
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(80), (SoundLengthSync(SoundLink("ChallengescombinedExecutor00012", -1)) + 1.0), -1, 10, true)
// L1708
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(230), 0.0, -1, 10, true)
// L1709
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(231), (SoundLengthSync(SoundLink("ChallengescombinedExecutor00013", -1)) + 1.0), -1, 10, true)
// L1718
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(232), 0.0, -1, 10, true)
// L1719
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(233), (SoundLengthSync(SoundLink("ChallengescombinedExecutor00014", -1)) + 1.0), -1, 10, true)
// L1835
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L519
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(41), 0.0, -1, 10, true)
// L1651
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(144), 0.0, -1, 10, true)
// L1656
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(145), ((SoundLengthSync(SoundLink("ChallengescombinedAdjutant00038", -1)) + SoundLengthSync(SoundLink("ChallengescombinedAdjutant00039", -1))) - 1.0), -1, 10, true)
// L1661
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(28), 0.0, -1, 10, true)
// L1662
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(31), (SoundLengthSync(SoundLink("ChallengescombinedAdjutant00040", -1)) - 1.0), -1, 10, true)
// L1668
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(146), 0.0, -1, 10, true)
// L1741
CameraApplyInfo(1, CameraInfoFromId(41), 0.0, -1, 10, true)
// L1276
CameraApplyInfo(gv_pLAYER_USER, CameraInfoDefault(), 0.0, -1, 10, false)
// L1331
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(64), 0.0, -1, 10, true)
// L2067
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(13), 0.0, -1, 10, true)
// L2073
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(32), (SoundLengthSync(SoundLink("ChallengescombinedAdjutant00031", -1)) + (SoundLengthSync(SoundLink("ChallengescombinedAdjutant00033", -1)) - 1.0)), -1, 10, true)
// L2210
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(64), 0.0, -1, 10, true)
// L2375
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(110), 0.0, -1, 10, true)
// L2380
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(120), (SoundLengthSync(SoundLink("ChallengescombinedAdjutant00031", -1)) + (SoundLengthSync(SoundLink("ChallengescombinedAdjutant00033", -1)) - 1.0)), -1, 10, true)
// L2457
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(64), 0.0, -1, 10, true)
// L861
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L944
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L1105
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L1272
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L2704
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(45), 0.0, -1, 10, true)
// L2708
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(44), (SoundLengthSync(SoundLink("ChallengescombinedAdjutant00026", -1)) - 0.0), -1, 10, true)
// L2717
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(50), 0.0, -1, 10, true)
// L2718
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), SoundLengthSync(SoundLink("ChallengescombinedAdjutant00029", -1)), -1, 10, true)
// L2747
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(46), 0.0, -1, 10, true)
// L2749
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(47), 0.0, -1, 10, true)
// L704
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L1391
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(330), 0.0, -1, 10, true)
// L1397
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(331), ((6.0 + SoundLengthSync(SoundLink("ChallengescombinedAdjutant00006", -1))) + (SoundLengthSync(SoundLink("ChallengescombinedAdjutant00007", -1)) + SoundLengthSync(SoundLink("ChallengescombinedAdjutant00008", -1)))), -1, 10, true)
// L1454
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L921
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L1008
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L1176
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L1346
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 0.0, -1, 10, true)
// L2850
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(2), 0.0, -1, 10, true)
// L2863
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(3), (SoundLengthSync(SoundLink("ChallengescombinedQueen00021", 0)) + SoundLengthSync(SoundLink("ChallengescombinedQueen00022", 0))), -1, 10, true)
// L2871
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(8), 0.0, -1, 10, true)
// L2872
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), SoundLengthSync(SoundLink("ChallengescombinedQueen00024", 0)), -1, 10, true)
// L2901
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(5), 0.0, -1, 10, true)
// L2903
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(6), 0.0, -1, 10, true)
// L692
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L1335
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L1339
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(362), ((SoundLengthSync(SoundLink("ChallengescombinedQueen00009", 0)) + SoundLengthSync(SoundLink("ChallengescombinedQueen00010", 0))) + SoundLengthSync(SoundLink("ChallengescombinedQueen00011", 0))), -1, 10, true)
// L1395
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(62), 0.0, -1, 10, true)
// L2483
CameraApplyInfo(gv_p1_USER, lv_camera, 0.0, -1, 10, true)
// L8607
CameraApplyInfo(1, CameraInfoFromId(343), 0.0, -1, 10, true)
// L8688
CameraApplyInfo(1, CameraInfoFromId(193), 0.0, -1, 10, true)
// L8733
CameraApplyInfo(1, CameraInfoFromId(1), 6.0, -1, 10, true)
// L8735
CameraApplyInfo(1, CameraInfoFromId(342), 10.0, -1, 0, true)
// L8737
CameraApplyInfo(1, CameraInfoFromId(343), 10.0, -1, 40, true)
// L1664
CameraApplyInfo(1, CameraInfoFromId(2506), 2.0, -1, 10, true)
// L5938
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(52), 0.0, -1, 10, true)
// L5940
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(2599), (1.5 * SoundLengthSync(SoundLink("THanson01BriefingHanson00011", 0))), -1, 10, true)
// L6026
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(2605), 0.0, -1, 10, true)
// L6028
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(2671), 10.0, -1, 10, true)
// L6149
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(2601), 0.0, -1, 10, true)
// L6151
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(2603), (SoundLengthSync(SoundLink("THanson01BriefingHanson00012", 0)) - 1.0), -1, 10, true)
// L6164
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(21), (SoundLengthSync(SoundLink("THanson01BriefingRaynor00004", 0)) + SoundLengthSync(SoundLink("THanson01BriefingHanson00003", 0))), -1, 10, true)
// L6330
CameraApplyInfo(1, CameraInfoFromId(178), 0.0, -1, 10, true)
// L6331
CameraApplyInfo(1, CameraInfoFromId(207), 10.0, -1, 10, true)
// L4762
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(322), 0.0, -1, 10, true)
// L4764
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(464), (SoundLengthSync(SoundLink("THanson02BriefingRaynor00002", 0)) + SoundLengthSync(SoundLink("THanson02BriefingHanson00010", -1))), -1, 10, true)
// L4795
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(10), 0.0, -1, 10, true)
// L4797
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(56), (SoundLengthSync(SoundLink("THanson02BriefingRaynor00011", 0)) + SoundLengthSync(SoundLink("THanson02BriefingRaynor00006", -1))), -1, 10, true)
// L4828
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1831), 0.0, -1, 10, true)
// L4830
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1832), (SoundLengthSync(SoundLink("THanson02BriefingRaynor00007", 0)) + 0.0), -1, 10, true)
// L4862
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(313), 0.0, -1, 10, true)
// L4873
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(907), 3.0, -1, 10, true)
// L4926
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(61), 0.0, -1, 10, true)
// L4951
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(232), 0.0, -1, 10, true)
// L6026
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(192), 0.0, -1, 10, true)
// L6028
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(193), 14.0, -1, 10, true)
// L6180
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(213), 0.0, -1, 10, true)