# Add New Bully
Grammar — Adds a new bully of type unitType|UnitType at location loc|Point for player player with rebuild count rebuildCount.
Flags —Native
|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
— Playerstring
[ gamelink::Unit ] — unitTypepoint
— Locint
— RebuildCount
Returns — void
native void AIAddBully(
int player,
string unitType,
point loc,
int rebuildCount,
);
# Related
Category: AI / Bullies / Actions
- [F] —
void
— Remove All Bullies — ( AIClearAllBullies ) - [F] —
void
— Add New Bully — ( AIAddBully ) - [F] —
void
— Set Minimum Bully Count — ( AISetMinimumBullyCount ) - [F] —
void
— Set Rebuild Count (Default) — ( AISetGeneralRebuildCount ) - [F] —
void
— Set Rebuild Count (Specific) — ( AISetSpecificRebuildCount ) - [F] —
void
— Set Attack Wave Bully Percent — ( AISetBullyAttackWavePercent ) - [F] —
void
— Set Bully Rebuild Delay — ( AISetBullyRebuildDelay ) - [F] —
void
— Limit Bully Rebuild To Nearest Town — ( AINearestTownBullyRebuild ) - [F] —
void
— Limit Bully Wave Gather To Nearest Town — ( AINearestTownLimitWaveGather ) - [F] —
void
— Activate/Deactivate Bullies In Region — ( AIToggleBulliesInRegion ) - [F] —
void
— Reset Bully Rebuild Counts In Region — ( AIResetBullyRebuildCountsInRegion )
# Examples
# campaigns/void.sc2campaign
// L921
AIAddBully(UnitGetOwner(lp_structure), lv_landingUnitType, UnitGetPosition(lp_structure), 13)
// L921
AIAddBully(UnitGetOwner(lp_structure), lv_landingUnitType, UnitGetPosition(lp_structure), 13)