# 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.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:2618

    gt_ObjectiveCamera02Complete = TriggerCreate("gt_ObjectiveCamera02Complete_Func");
    TriggerEnable(gt_ObjectiveCamera02Complete, false);
    TriggerAddEventCameraMove(gt_ObjectiveCamera02Complete, gv_p01_USER, c_cameraMoveReasonMinimap);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:2618

    gt_ObjectiveCamera02Complete = TriggerCreate("gt_ObjectiveCamera02Complete_Func");
    TriggerEnable(gt_ObjectiveCamera02Complete, false);
    TriggerAddEventCameraMove(gt_ObjectiveCamera02Complete, gv_p01_USER, c_cameraMoveReasonMinimap);
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4757

    gt_BasicPanCameraArrowHelper = TriggerCreate("gt_BasicPanCameraArrowHelper_Func");
    TriggerEnable(gt_BasicPanCameraArrowHelper, false);
    TriggerAddEventCameraMove(gt_BasicPanCameraArrowHelper, gv_p01_USER, c_cameraMoveReasonAny);
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4790

    gt_BasicPanCameraComplete = TriggerCreate("gt_BasicPanCameraComplete_Func");
    TriggerEnable(gt_BasicPanCameraComplete, false);
    TriggerAddEventCameraMove(gt_BasicPanCameraComplete, gv_p01_USER, c_cameraMoveReasonAny);
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4973

    gt_BasicMinimapCameraReset = TriggerCreate("gt_BasicMinimapCameraReset_Func");
    TriggerEnable(gt_BasicMinimapCameraReset, false);
    TriggerAddEventCameraMove(gt_BasicMinimapCameraReset, gv_p01_USER, c_cameraMoveReasonAny);
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:5006

    gt_BasicMinimapComplete = TriggerCreate("gt_BasicMinimapComplete_Func");
    TriggerEnable(gt_BasicMinimapComplete, false);
    TriggerAddEventCameraMove(gt_BasicMinimapComplete, gv_p01_USER, c_cameraMoveReasonMinimap);
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:4757

    gt_BasicPanCameraArrowHelper = TriggerCreate("gt_BasicPanCameraArrowHelper_Func");
    TriggerEnable(gt_BasicPanCameraArrowHelper, false);
    TriggerAddEventCameraMove(gt_BasicPanCameraArrowHelper, gv_p01_USER, c_cameraMoveReasonAny);
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:4790

    gt_BasicPanCameraComplete = TriggerCreate("gt_BasicPanCameraComplete_Func");
    TriggerEnable(gt_BasicPanCameraComplete, false);
    TriggerAddEventCameraMove(gt_BasicPanCameraComplete, gv_p01_USER, c_cameraMoveReasonAny);
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:4973

    gt_BasicMinimapCameraReset = TriggerCreate("gt_BasicMinimapCameraReset_Func");
    TriggerEnable(gt_BasicMinimapCameraReset, false);
    TriggerAddEventCameraMove(gt_BasicMinimapCameraReset, gv_p01_USER, c_cameraMoveReasonAny);
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:5006

    gt_BasicMinimapComplete = TriggerCreate("gt_BasicMinimapComplete_Func");
    TriggerEnable(gt_BasicMinimapComplete, false);
    TriggerAddEventCameraMove(gt_BasicMinimapComplete, gv_p01_USER, c_cameraMoveReasonMinimap);
}

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2270

void libMHtM_gt_MMHMPlayerMovesCamera_Init () {
    libMHtM_gt_MMHMPlayerMovesCamera = TriggerCreate("libMHtM_gt_MMHMPlayerMovesCamera_Func");
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 1, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 2, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 3, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2271

    libMHtM_gt_MMHMPlayerMovesCamera = TriggerCreate("libMHtM_gt_MMHMPlayerMovesCamera_Func");
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 1, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 2, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 3, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 4, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2272

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 1, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 2, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 3, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 4, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 5, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2273

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 2, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 3, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 4, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 5, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 6, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2274

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 3, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 4, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 5, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 6, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 7, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2275

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 4, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 5, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 6, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 7, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 8, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2276

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 5, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 6, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 7, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 8, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 9, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2277

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 6, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 7, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 8, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 9, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 10, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2278

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 7, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 8, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 9, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 10, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, libCore_gv_oBSERVER_ObserverUIPlayer, c_cameraMoveReasonAny);

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2279

    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 8, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 9, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, 10, c_cameraMoveReasonAny);
    TriggerAddEventCameraMove(libMHtM_gt_MMHMPlayerMovesCamera, libCore_gv_oBSERVER_ObserverUIPlayer, c_cameraMoveReasonAny);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:9685

    libCOUI_gt_CU_MinimapAllyViewUpdateP1 = TriggerCreate("libCOUI_gt_CU_MinimapAllyViewUpdateP1_Func");
    TriggerEnable(libCOUI_gt_CU_MinimapAllyViewUpdateP1, false);
    TriggerAddEventCameraMove(libCOUI_gt_CU_MinimapAllyViewUpdateP1, 1, c_cameraMoveReasonAny);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:9706

    libCOUI_gt_CU_MinimapAllyViewUpdateP2 = TriggerCreate("libCOUI_gt_CU_MinimapAllyViewUpdateP2_Func");
    TriggerEnable(libCOUI_gt_CU_MinimapAllyViewUpdateP2, false);
    TriggerAddEventCameraMove(libCOUI_gt_CU_MinimapAllyViewUpdateP2, 2, c_cameraMoveReasonAny);
}