# 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.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:921

        if ((UnitGetType(lp_structure) == lv_landingUnitType)) {
            AISetUnitScriptControlled(lp_structure, false);
            AIAddBully(UnitGetOwner(lp_structure), lv_landingUnitType, UnitGetPosition(lp_structure), 13);
            Wait(0.0625, c_timeGame);
            if ((libNtve_gf_UnitInRegion(lp_structure, RegionFromId(50)) == true)) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2mapMapScript.galaxy:921

        if ((UnitGetType(lp_structure) == lv_landingUnitType)) {
            AISetUnitScriptControlled(lp_structure, false);
            AIAddBully(UnitGetOwner(lp_structure), lv_landingUnitType, UnitGetPosition(lp_structure), 13);
            Wait(0.0625, c_timeGame);
            if ((libNtve_gf_UnitInRegion(lp_structure, RegionFromId(50)) == true)) {