# Destroy Effects

Grammar — Destroy up to maximum effectType effects within distance of position
FlagsNative | Action

Removes up to a specified amount of effects within a specified radius of a point. This includes effects created by the game as well as effects created via “Create Effect” trigger actions.

# Arguments

  • point — Position
  • fixed — Distance
  • int — Maximum
  • string [ gamelink::Effect ] — Effect Type

Returns — void

native void GameDestroyEffects(
	point pos,
	fixed radius,
	int maxCount,
	string effectType,
);

Category: Environment / Effects

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L6079
GameDestroyEffects(PointFromId(321), 15.0, 0, "VortexCreatePersistent")
// L6080
GameDestroyEffects(PointFromId(321), 15.0, 0, "VortexCreatePersistentInitial")
// L6079
GameDestroyEffects(PointFromId(321), 15.0, 0, "VortexCreatePersistent")
// L6080
GameDestroyEffects(PointFromId(321), 15.0, 0, "VortexCreatePersistentInitial")
// L904
GameDestroyEffects(lp_cHOSEN_POINT, 8.0, 0, "NukeDetonate")
// L956
GameDestroyEffects(lp_cHOSEN_POINT, 8.0, 0, "NukeDetonate")
// L6651
GameDestroyEffects(PointFromId(584), 30.0, 0, "NukeDetonate")
// L6068
GameDestroyEffects(PointFromId(283), 12.0, 0, "VoidSentryShieldRepair")
// L904
GameDestroyEffects(lp_cHOSEN_POINT, 8.0, 0, "NukeDetonate")
// L956
GameDestroyEffects(lp_cHOSEN_POINT, 8.0, 0, "NukeDetonate")
// L6651
GameDestroyEffects(PointFromId(584), 30.0, 0, "NukeDetonate")
// L6068
GameDestroyEffects(PointFromId(283), 12.0, 0, "VoidSentryShieldRepair")
// L5508
GameDestroyEffects(RegionGetCenter(RegionFromId(71)), 12.0, 0, null)
// L2011
GameDestroyEffects(UnitGetPosition(gv_nova), 8.0, 0, "NovaDominationPersistent")
// L2013
GameDestroyEffects(UnitGetPosition(gv_dominatedBuddyUnit), 8.0, 0, "NovaDominationPersistent")
// L5570
GameDestroyEffects(UnitGetPosition(gv_nova), 8.0, 0, "NovaDominationPersistent")
// L5571
GameDestroyEffects(UnitGetPosition(gv_s1_ThorFriend), 8.0, 0, "NovaDominationPersistent")
// L7967
GameDestroyEffects(UnitGetPosition(gv_nova), 8.0, 0, "NovaDominationPersistent")
// L7968
GameDestroyEffects(UnitGetPosition(gv_stone), 8.0, 0, "NovaDominationPersistent")
// L5508
GameDestroyEffects(RegionGetCenter(RegionFromId(71)), 12.0, 0, null)
// L2011
GameDestroyEffects(UnitGetPosition(gv_nova), 8.0, 0, "NovaDominationPersistent")
// L2013
GameDestroyEffects(UnitGetPosition(gv_dominatedBuddyUnit), 8.0, 0, "NovaDominationPersistent")
// L5570
GameDestroyEffects(UnitGetPosition(gv_nova), 8.0, 0, "NovaDominationPersistent")
// L5571
GameDestroyEffects(UnitGetPosition(gv_s1_ThorFriend), 8.0, 0, "NovaDominationPersistent")
// L7967
GameDestroyEffects(UnitGetPosition(gv_nova), 8.0, 0, "NovaDominationPersistent")
// L7968
GameDestroyEffects(UnitGetPosition(gv_stone), 8.0, 0, "NovaDominationPersistent")