# Set Camera Channel

Grammar — Set model camera name from u for player player to render-to-texture channel channel using aspect ratio aspectRatio|AspectRatio.
FlagsNative | Action

Sets a model camera for the specified unit to be rendered to the specified render-to-texture channel.

# Arguments

  • int — Player
  • unit — CameraUnit
  • string [ modelcamera ] — Camera Name
  • int — Channel
  • fixed — Aspect Ratio

Returns — void

native void CameraSetChannel(
	int player,
	unit cameraUnit,
	string cameraName,
	int channel,
	fixed aspectRatio,
);

Category: Camera / Model Cameras

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// L1192
CameraSetChannel(1, libVCST_gf_ClickableUnit("BridgeConsole"), "SMC2_Bridge_Communicator_Camera", 1, 1.0)
// L1192
CameraSetChannel(1, libVCST_gf_ClickableUnit("BridgeConsole"), "SMC2_Bridge_Communicator_Camera", 1, 1.0)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L6631
CameraSetChannel(libCOMI_gv_cM_ZeratulPlayer, libCOMI_gv_cM_ZeratulProphecyCamera, "Camera_Basic", 1, 1.0)