# 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

// 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)
// L6182
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(3538), 20.0, -1, 10, true)
// L6230
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(3264), 0.0, -1, 10, true)
// L6232
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(3265), 6.5, -1, 10, true)
// L6307
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(3540), 0.0, -1, 10, true)
// L6309
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(3539), 18.0, -1, 10, true)
// L6385
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(175), 0.0, -1, 10, true)
// L6387
CameraApplyInfo(gv_pLAYER01_USER, CameraInfoFromId(176), 18.0, -1, 10, true)
// L4012
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(398), 0.0, -1, 10, true)
// L4014
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(405), (SoundLengthSync(SoundLink("THanson03BBriefingRaynor00002", -1)) + SoundLengthSync(SoundLink("THanson03BBriefingRaynor00010", -1))), -1, 10, true)
// L4023
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(227), (SoundLengthSync(SoundLink("THanson03BBriefingTychus00004", -1)) + SoundLengthSync(SoundLink("THanson03BBriefingRaynor00006", -1))), -1, 10, true)
// L4224
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(647), 0.0, -1, 10, true)
// L4226
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1075), SoundLengthSync(SoundLink("THanson03BBriefingSwann00007", -1)), -1, 10, true)
// L4281
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(3449), 0.0, -1, 10, true)
// L4283
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(3450), SoundLengthSync(SoundLink("THanson03BBriefingRaynor00008", -1)), -1, 10, true)
// L4335
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(3450), 0.0, -1, 10, true)
// L4523
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(38), 0.0, -1, 10, true)
// L4542
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(37), (SoundLengthSync(SoundLink("THanson03BAdjutant00018", 0)) + 0.0), -1, 10, true)
// L5633
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1770), 0.0, -1, 10, true)
// L5635
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1771), (SoundLengthSync(SoundLink("THorner01BriefingRaynor00018", -1)) + 3.0), -1, 10, true)
// L5641
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1772), 8.0, -1, 10, true)
// L5717
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1774), 0.0, -1, 10, true)
// L5719
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1775), (SoundLengthSync(SoundLink("THorner01BriefingHorner00006", -1)) + 0.0), -1, 10, true)
// L5755
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1776), 0.0, -1, 10, true)
// L5757
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1777), 8.0, -1, 10, true)
// L5921
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(59), 0.0, -1, 10, true)
// L5132
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(627), 0.0, -1, 10, true)
// L5134
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(628), 16.0, -1, 10, true)
// L5235
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1523), 0.0, -1, 10, true)
// L5237
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1524), 16.0, -1, 10, true)
// L5287
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(615), 0.0, -1, 10, true)
// L5289
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(617), 7.0, -1, 10, true)
// L5482
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1566), 0.0, -1, 10, true)
// L5486
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1567), 15.0, -1, 10, true)
// L5725
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(621), 0.0, -1, 10, true)
// L5760
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(622), 12.0, -1, 10, true)
// L3268
CameraApplyInfo(gv_p01_USER, CameraInfoDefault(), 1.0, -1, 10, true)
// L5122
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(764), 0.0, -1, 10, true)
// L5124
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(922), 15.0, -1, 10, true)
// L5181
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(958), 0.0, -1, 10, true)
// L5183
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(963), 14.0, -1, 10, true)
// L5246
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(828), 0.0, -1, 10, true)
// L5248
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(965), 14.0, -1, 10, true)
// L5282
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(659), 0.0, -1, 10, true)
// L5284
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(646), 20.0, -1, 10, true)
// L5338
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(26), 0.0, -1, 10, true)
// L5974
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1133), 0.0, -1, 10, true)
// L5976
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1272), 15.0, -1, 10, true)
// L6087
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1375), 0.0, -1, 10, true)
// L6089
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1025), 10.0, -1, 10, true)
// L6130
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1223), 0.0, -1, 10, true)
// L6132
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1224), 10.0, -1, 10, true)
// L6162
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1273), 0.0, -1, 10, true)
// L6164
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1274), ((SoundLengthSync(SoundLink("THorner04BriefingHorner00011", -1)) + SoundLengthSync(SoundLink("THorner04BriefingHorner00005", -1))) - 1.0), -1, 10, true)
// L6172
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1282), 7.0, -1, 10, true)
// L6329
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1411), 0.0, -1, 10, true)
// L3105
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(418), 0.0, -1, 10, true)
// L3106
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(419), 12.0, -1, 10, true)
// L3353
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(185), 0.0, -1, 10, true)
// L3354
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1279), 0.0, -1, 10, false)
// L4006
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(458), 0.0, -1, 10, true)
// L4007
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1196), 12.0, -1, 10, true)
// L4076
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(458), 12.0, -1, 10, true)
// L4465
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(173), 0.0, -1, 10, true)
// L4466
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1279), 0.0, -1, 10, false)
// L4822
CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1197), 0.0, -1, 10, true)
// L4673
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(63), 0.0, -1, 10, true)
// L4675
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(750), (SoundLengthSync(SoundLink("TRaynor01BriefingRaynor00006", -1)) + 3.0), -1, 10, true)
// L4684
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(206), SoundLengthSync(SoundLink("TRaynor01BriefingAdjutant00010", -1)), -1, 10, true)
// L4791
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(831), 0.0, -1, 10, true)
// L4793
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(1013), SoundLengthSync(SoundLink("TRaynor01BriefingAdjutant00013", -1)), -1, 10, true)
// L4833
CameraApplyInfo(gv_p1_USER, CameraInfoFromId(2273), 0.0, -1, 10, true)