# Attach Region To Unit
Grammar — Attach region to unit with offset offset
Flags —Native
|Action
Attaches a region to a unit.
# Arguments
region
— Regionunit
— Unitpoint
— Offset
Returns — void
native void RegionAttachToUnit(
region r,
unit u,
point offset,
);
# Related
Category: Region / Modification
- [F] —
point
— Random Point In Region — ( RegionRandomPoint ) - [F] —
point
— Center Of Region — ( RegionGetCenter ) - [F] —
unit
— Unit Attached To Region — ( RegionGetAttachUnit ) - [F] —
void
— Attach Region To Unit — ( RegionAttachToUnit ) - [F] —
void
— Move Region — ( RegionSetCenter ) - [F] —
fixed
— Width Of Region — ( libNtve_gf_WidthOfRegion ) - [F] —
fixed
— Height Of Region — ( libNtve_gf_HeightOfRegion ) - [F] —
point
— Bottom-Left Of Region Bounds — ( RegionGetBoundsMin ) - [F] —
point
— Top-Right Of Region Bounds — ( RegionGetBoundsMax )
# Examples
# campaigns/liberty.sc2campaign
// 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))