# Camera Move Reason
Grammar — Camera move reason
Flags —Native
|Function
Returns the source of the last camera movement.
Returns — int
<preset::CameraMoveReason>
native int EventCameraMoveReason();
# Supported triggers
- Camera Moves — TriggerAddEventCameraMove
# 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/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4942
// Conditions
if (testConds) {
if (!((EventCameraMoveReason() != c_cameraMoveReasonMinimap))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:4942
// Conditions
if (testConds) {
if (!((EventCameraMoveReason() != c_cameraMoveReasonMinimap))) {
return false;
}