# Set Camera Data

Grammar — Set camera as the active camera data for players
FlagsNative | Action

The active camera data determines how the camera moves and responds to player input. Camera data can be configured in the Data module.

# Arguments

  • playergroup — Players
  • string [ gamelink::Camera ] — Camera

Returns — void

native void CameraSetData(
	playergroup players,
	string cameraId,
);

Category: Camera / Basic

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L1808
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueen")
// L2002
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueenLarge")
// L2169
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueenHuge")
// L2704
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueen")
// L2792
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LarvaCamera")
// L3258
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueen")
// L3624
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LarvaCamera")
// L8843
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LarvaCamera")
// L11384
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LabHeroCamera")
// L11999
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "Dflt")
// L12352
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LabHeroCamera")
// L12878
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LabHeroCamera")
// L4851
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L6657
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L9835
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L9848
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L10406
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L10842
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L10917
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L11273
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L11373
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L11771
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L1808
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueen")
// L2002
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueenLarge")
// L2169
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueenHuge")
// L2704
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueen")
// L2792
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LarvaCamera")
// L3258
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "SwarmQueen")
// L3624
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LarvaCamera")
// L8843
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LarvaCamera")
// L11384
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LabHeroCamera")
// L11999
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "Dflt")
// L12352
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LabHeroCamera")
// L12878
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "LabHeroCamera")
// L4851
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L6657
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L9835
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L9848
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L10406
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L10842
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L10917
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L11273
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L11373
CameraSetData(PlayerGroupAll(), "ZoomedCamera")
// L11771
CameraSetData(PlayerGroupAll(), "ZoomedCamera")

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L489
CameraSetData(PlayerGroupAll(), "SOATargetingModeCamera")
// L578
CameraSetData(PlayerGroupAll(), "Dflt")

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L9676
CameraSetData(PlayerGroupSingle(EventPlayer()), "Dryad")
// L9704
CameraSetData(PlayerGroupSingle(EventPlayer()), "BlizzardAllStars")
// L9732
CameraSetData(PlayerGroupSingle(libGDHL_gf_AbathurSymbioteAbathurPlayer()), "Dryad")
// L9736
CameraSetData(PlayerGroupSingle(libGDHL_gf_AbathurSymbioteAbathurPlayer()), "BlizzardAllStars")
// L9770
CameraSetData(PlayerGroupSingle(lv_player), "BlizzardAllStars")
// L9774
CameraSetData(PlayerGroupSingle(lv_player), "Dryad")

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L9819
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "Dflt2")
// L10175
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "Dflt2")
// L6224
CameraSetData(PlayerGroupAll(), "BonusObjectiveInstallation")
// L6290
CameraSetData(PlayerGroupAll(), "Dflt")
// L6356
CameraSetData(PlayerGroupAll(), "BonusObjectiveInstallation")
// L6423
CameraSetData(PlayerGroupAll(), "Dflt")
// L6522
CameraSetData(PlayerGroupAll(), "Dflt")
// L3438
CameraSetData(PlayerGroupAll(), "Dflt2")
// L6071
CameraSetData(PlayerGroupAll(), "Dflt2")
// L9819
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "Dflt2")
// L10175
CameraSetData(PlayerGroupSingle(gv_pLAYER_01_USER), "Dflt2")
// L6224
CameraSetData(PlayerGroupAll(), "BonusObjectiveInstallation")
// L6290
CameraSetData(PlayerGroupAll(), "Dflt")
// L6356
CameraSetData(PlayerGroupAll(), "BonusObjectiveInstallation")
// L6423
CameraSetData(PlayerGroupAll(), "Dflt")
// L6522
CameraSetData(PlayerGroupAll(), "Dflt")
// L3438
CameraSetData(PlayerGroupAll(), "Dflt2")
// L6071
CameraSetData(PlayerGroupAll(), "Dflt2")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L7013
CameraSetData(PlayerGroupSingle(lp_player), "SOATargetingModeCamera")
// L7034
CameraSetData(PlayerGroupSingle(lp_player), "Dflt")