# Force Follow Unit Group with Camera

GrammardoDoNot force following the active unit group for player player with the camera
FlagsNative | Action

Toggles whether the camera is forced to follow the active follow unit group. If it is not forced to follow then it will rely on the player’s local follow state.

# Arguments

Returns — void

native void CameraForceFollowUnitGroup(
	int player,
	bool forced,
);

Category: Camera / Camera Tricks

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6658

        UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false);
        CameraFollowUnitGroup(1, UnitLastCreatedGroup(), true, false);
        CameraForceFollowUnitGroup(1, true);
        CameraLockInput(1, true);
        AITimePause(true);

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9873

        	VisRevealArea(auto35A7B0B1_var, RegionPlayableMap(), 0.0, false);
        PlayerOptionOverride(auto35A7B0B1_var, "camerafollow", "0");
        CameraForceFollowUnitGroup(auto35A7B0B1_var, false);
        CameraApplyInfo(auto35A7B0B1_var, CameraInfoDefault(), 2.0, -1, 10.0, false);
        CameraPan(auto35A7B0B1_var, PointWithOffsetPolar(libPEB1_gv_victoryPanPoint, 3.0, 90.0), 2.0, -1, 10.0, false);

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:10035

        UnitIssueOrder(lv_heroUnit, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
        PlayerOptionOverride(lv_playerIndex, "camerafollow", "0");
        CameraForceFollowUnitGroup(lv_playerIndex, false);
        CameraApplyInfo(lv_playerIndex, CameraInfoDefault(), 0.0, -1, 10.0, false);
        CameraPan(lv_playerIndex, libPEB1_gv_shelter.lv_cameraPanPoint, 0.0, -1, 10.0, false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1065

    if ((libGame_gv_cameraFollowForced[lp_player] == true)) {
        libGame_gv_cameraFollowForced[lp_player] = false;
        CameraForceFollowUnitGroup(lp_player, false);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5777

        UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false);
        CameraFollowUnitGroup(1, UnitLastCreatedGroup(), true, false);
        CameraForceFollowUnitGroup(1, true);
        CameraLockInput(1, true);
        AITimePause(true);