# Attach Region To Unit

Grammar — Attach region to unit with offset offset
FlagsNative | Action

Attaches a region to a unit.

# Arguments

  • region — Region
  • unit — Unit
  • point — Offset

Returns — void

native void RegionAttachToUnit(
	region r,
	unit u,
	point offset,
);

Category: Region / Modification

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L6411
RegionAttachToUnit(RegionFromId(106), gv_tHEONEOMEGALISK, Point(0.0, 0.0))
// L464
RegionAttachToUnit(RegionFromId(28), gv_leviathan, Point(0.0, 0.0))
// L6411
RegionAttachToUnit(RegionFromId(106), gv_tHEONEOMEGALISK, Point(0.0, 0.0))
// L464
RegionAttachToUnit(RegionFromId(28), gv_leviathan, Point(0.0, 0.0))
// L1322
RegionAttachToUnit(gv_displacementBeam.lv_shakeRegionLarge, gv_displacementBeam.lv_unit, Point(0.0, 0.0))
// L1323
RegionAttachToUnit(gv_displacementBeam.lv_shakeRegionSmall, gv_displacementBeam.lv_unit, Point(0.0, 0.0))
// L1324
RegionAttachToUnit(RegionFromId(65), gv_displacementBeam.lv_unit, Point(0.0, 0.0))
// L1322
RegionAttachToUnit(gv_displacementBeam.lv_shakeRegionLarge, gv_displacementBeam.lv_unit, Point(0.0, 0.0))
// L1323
RegionAttachToUnit(gv_displacementBeam.lv_shakeRegionSmall, gv_displacementBeam.lv_unit, Point(0.0, 0.0))
// L1324
RegionAttachToUnit(RegionFromId(65), gv_displacementBeam.lv_unit, Point(0.0, 0.0))