# Camera Move Reason

Grammar — Camera move reason
FlagsNative | Function

Returns the source of the last camera movement.

Returns — int<preset::CameraMoveReason>

native int EventCameraMoveReason();

# Supported triggers

Category: Camera / Utility

# Examples

campaigns/void.sc2campaignbase.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.sc2mapMapScript.galaxy:4942

    // Conditions
    if (testConds) {
        if (!((EventCameraMoveReason() != c_cameraMoveReasonMinimap))) {
            return false;
        }