# Copy Unit Control Groups

Grammar — Copy the control group states of sourceUnit to targetUnit
FlagsAction

Copy all control group states on a unit to another unit.

# Arguments

  • unit — Source Unit
  • unit — Target Unit

Returns — void

void libNtve_gf_CopyUnitControlGroups(
	unit lp_sourceUnit,
	unit lp_targetUnit,
);

Category: Selection / Control Groups

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L26477
libNtve_gf_CopyUnitControlGroups(auto8B4AE5B8_var, libNtve_gf_LastReplacedUnit())