# Add New Bully

Grammar — Adds a new bully of type unitType|UnitType at location loc|Point for player player with rebuild count rebuildCount.
FlagsNative | Action

Creates a new unit of the specified unit type at a point that the AI will attempt to rebuild if killed. This includes the number of times that the AI will rebuild the unit.

# Arguments

  • int — Player
  • string [ gamelink::Unit ] — unitType
  • point — Loc
  • int — RebuildCount

Returns — void

native void AIAddBully(
	int player,
	string unitType,
	point loc,
	int rebuildCount,
);

Category: AI / Bullies / Actions

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// L921
AIAddBully(UnitGetOwner(lp_structure), lv_landingUnitType, UnitGetPosition(lp_structure), 13)
// L921
AIAddBully(UnitGetOwner(lp_structure), lv_landingUnitType, UnitGetPosition(lp_structure), 13)