# Camera Moves
Grammar — Player player moves the camera for reason Reason
Flags —Native
|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
int
— Playerint
<preset::CameraMoveReason> — Reason
Returns — void
native void TriggerAddEventCameraMove(
trigger t,
int player,
int reason,
);
# Event parameters
- Camera Move Reason — EventCameraMoveReason
# Related
Category: Camera / Utility
- Camera Moves —
void
— TriggerAddEventCameraMove - Camera Move Reason —
int
<preset::CameraMoveReason> — EventCameraMoveReason - Apply Camera Property —
void
— CameraSetValue - Camera Object Property —
fixed
— CameraInfoGetValue - Set Camera Object Property —
void
— CameraInfoSetValue - Camera Object Target —
point
— CameraInfoGetTarget - Set Camera Object Target —
void
— CameraInfoSetTarget - Copy Of Camera Object —
camerainfo
— libNtve_gf_CopyOfCameraObject
# Examples
campaigns/liberty.sc2campaign — base.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.sc2map — MapScript.galaxy:2618
gt_ObjectiveCamera02Complete = TriggerCreate("gt_ObjectiveCamera02Complete_Func");
TriggerEnable(gt_ObjectiveCamera02Complete, false);
TriggerAddEventCameraMove(gt_ObjectiveCamera02Complete, gv_p01_USER, c_cameraMoveReasonMinimap);
}
campaigns/void.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2map — MapScript.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.sc2map — MapScript.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.sc2map — MapScript.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.sc2map — MapScript.galaxy:5006
gt_BasicMinimapComplete = TriggerCreate("gt_BasicMinimapComplete_Func");
TriggerEnable(gt_BasicMinimapComplete, false);
TriggerAddEventCameraMove(gt_BasicMinimapComplete, gv_p01_USER, c_cameraMoveReasonMinimap);
}
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.sc2mod — base.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.sc2mod — base.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);
}