# Follow Unit Group with Camera

Grammarfollow|Follow/Stop Following for player player unitGroup with the camera and keepCurrentTarget
FlagsNative | Action

Follows a unit group with the camera.

# Arguments

Returns — void

native void CameraFollowUnitGroup(
	int player,
	unitgroup group,
	bool follow,
	bool isOffset,
);

Category: Camera / Camera Tricks

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L9916
CameraFollowUnitGroup(gv_p1_USER, libNtve_gf_ConvertUnitToUnitGroup(lv_victoryVoidSeeker), true, true)
// L9925
CameraFollowUnitGroup(1, libNtve_gf_ConvertUnitToUnitGroup(lv_victoryVoidSeeker), false, false)
// L9916
CameraFollowUnitGroup(gv_p1_USER, libNtve_gf_ConvertUnitToUnitGroup(lv_victoryVoidSeeker), true, true)
// L9925
CameraFollowUnitGroup(1, libNtve_gf_ConvertUnitToUnitGroup(lv_victoryVoidSeeker), false, false)
// L4556
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_cinematicAlarak), true, true)
// L4569
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_cinematicAlarak), false, false)
// L4556
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_cinematicAlarak), true, true)
// L4569
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_cinematicAlarak), false, false)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L6657
CameraFollowUnitGroup(1, UnitLastCreatedGroup(), true, false)

# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod

LibAREN.galaxy

// L762
CameraFollowUnitGroup(autoBF8A0686_var, CameraFollowUnitGroupGet(autoBF8A0686_var), false, false)

# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod

LibAtDe.galaxy

// L157
CameraFollowUnitGroup(auto4F553357_var, CameraFollowUnitGroupGet(auto4F553357_var), false, false)

# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod

LibAMVS.galaxy

// L348
CameraFollowUnitGroup(auto6A7946D4_var, CameraFollowUnitGroupGet(auto6A7946D4_var), false, false)
// L358
CameraFollowUnitGroup(auto218DEA82_var, CameraFollowUnitGroupGet(auto218DEA82_var), false, false)

# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod

LibMDoE.galaxy

// L226
CameraFollowUnitGroup(autoC56B2D95_var, CameraFollowUnitGroupGet(autoC56B2D95_var), false, false)
// L2368
CameraFollowUnitGroup(autoD01FF052_var, CameraFollowUnitGroupGet(autoD01FF052_var), false, false)

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L1277
CameraFollowUnitGroup(lv_itPlayer, CameraFollowUnitGroupGet(lv_itPlayer), false, false)

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L1394
CameraFollowUnitGroup(lv_itPlayer, CameraFollowUnitGroupGet(lv_itPlayer), false, false)

# mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod

LibLNYF.galaxy

// L808
CameraFollowUnitGroup(lv_i, libNtve_gf_ConvertUnitToUnitGroup(UnitLastCreated()), true, false)
// L824
CameraFollowUnitGroup(libCore_gv_oBSERVER_ObserverUIPlayer, libNtve_gf_ConvertUnitToUnitGroup(UnitLastCreated()), true, false)
// L1149
CameraFollowUnitGroup(libCore_gv_oBSERVER_ObserverUIPlayer, libGame_gv_players[1].lv_cameraCurrentTargetGroup, true, false)

# mods/heroesbrawlmods/brawlmapmods/pullparty.stormmod

LibMMPP.galaxy

// L74
CameraFollowUnitGroup(autoC59C0280_var, CameraFollowUnitGroupGet(autoC59C0280_var), false, false)

# mods/heroesdata.stormmod

GameLib.galaxy

// L1076
CameraFollowUnitGroup(lp_player, CameraFollowUnitGroupGet(lp_player), false, false)
// L1077
CameraFollowUnitGroup(lp_player, libGame_gv_players[lp_player].lv_cameraCurrentTargetGroup, true, false)
// L1087
CameraFollowUnitGroup(lp_player, CameraFollowUnitGroupGet(lp_player), false, false)
// L1088
CameraFollowUnitGroup(lp_player, libGame_gv_players[lp_player].lv_cameraCurrentTargetGroup, true, false)
// L1095
CameraFollowUnitGroup(lp_player, CameraFollowUnitGroupGet(lp_player), false, false)
// L1096
CameraFollowUnitGroup(lp_player, libGame_gv_players[lp_player].lv_cameraCurrentTargetGroup, true, false)
// L1103
CameraFollowUnitGroup(lp_player, CameraFollowUnitGroupGet(lp_player), false, false)
// L1108
CameraFollowUnitGroup(lp_player, CameraFollowUnitGroupGet(lp_player), false, false)
// L1109
CameraFollowUnitGroup(lp_player, libGame_gv_players[lp_player].lv_cameraCurrentTargetGroup, true, false)
// L1117
CameraFollowUnitGroup(lp_player, CameraFollowUnitGroupGet(lp_player), false, false)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L145
CameraFollowUnitGroup(1, UnitGroupSelected(1), true, false)
// L184
CameraFollowUnitGroup(1, UnitGroupSelected(1), true, false)
// L1903
CameraFollowUnitGroup(1, UnitGroupSelected(1), true, false)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L5776
CameraFollowUnitGroup(1, UnitLastCreatedGroup(), true, false)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L10109
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_victoryLander), true, false)
// L10411
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_zeratul), true, false)
// L1132
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(lp_escourtTarget), true, false)
// L1136
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(lp_escourtTarget), false, false)
// L10109
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_victoryLander), true, false)
// L10411
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(gv_zeratul), true, false)
// L1132
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(lp_escourtTarget), true, false)
// L1136
CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(lp_escourtTarget), false, false)