# Camera Moves

Grammar — Player player moves the camera for reason Reason
FlagsNative | Event

This event fires when the specified player moves the camera. Use “Camera Move Reason” to get the way in which the camera was moved.

# Arguments

Returns — void

native void TriggerAddEventCameraMove(
	trigger t,
	int player,
	int reason,
);

# Event parameters

Category: Camera / Utility

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2618
TriggerAddEventCameraMove(gt_ObjectiveCamera02Complete, gv_p01_USER, c_cameraMoveReasonMinimap)
// L2618
TriggerAddEventCameraMove(gt_ObjectiveCamera02Complete, gv_p01_USER, c_cameraMoveReasonMinimap)
// L4757
TriggerAddEventCameraMove(gt_BasicPanCameraArrowHelper, gv_p01_USER, c_cameraMoveReasonAny)
// L4790
TriggerAddEventCameraMove(gt_BasicPanCameraComplete, gv_p01_USER, c_cameraMoveReasonAny)
// L4973
TriggerAddEventCameraMove(gt_BasicMinimapCameraReset, gv_p01_USER, c_cameraMoveReasonAny)
// L5006
TriggerAddEventCameraMove(gt_BasicMinimapComplete, gv_p01_USER, c_cameraMoveReasonMinimap)
// L4757
TriggerAddEventCameraMove(gt_BasicPanCameraArrowHelper, gv_p01_USER, c_cameraMoveReasonAny)
// L4790
TriggerAddEventCameraMove(gt_BasicPanCameraComplete, gv_p01_USER, c_cameraMoveReasonAny)
// L4973
TriggerAddEventCameraMove(gt_BasicMinimapCameraReset, gv_p01_USER, c_cameraMoveReasonAny)
// L5006
TriggerAddEventCameraMove(gt_BasicMinimapComplete, gv_p01_USER, c_cameraMoveReasonMinimap)

# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod

LibMHtM.galaxy

// L2270
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 1, c_cameraMoveReasonAny)
// L2271
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 2, c_cameraMoveReasonAny)
// L2272
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 3, c_cameraMoveReasonAny)
// L2273
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 4, c_cameraMoveReasonAny)
// L2274
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 5, c_cameraMoveReasonAny)
// L2275
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 6, c_cameraMoveReasonAny)
// L2276
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 7, c_cameraMoveReasonAny)
// L2277
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 8, c_cameraMoveReasonAny)
// L2278
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 9, c_cameraMoveReasonAny)
// L2279
TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 10, c_cameraMoveReasonAny)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L9682
TriggerAddEventCameraMove(libCOUI_gt_CU_MinimapAllyViewUpdateP1, 1, c_cameraMoveReasonAny)
// L9703
TriggerAddEventCameraMove(libCOUI_gt_CU_MinimapAllyViewUpdateP2, 2, c_cameraMoveReasonAny)