# 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
- Remove All Bullies —
void
— AIClearAllBullies - Add New Bully —
void
— AIAddBully - Set Minimum Bully Count —
void
— AISetMinimumBullyCount - Set Rebuild Count (Default) —
void
— AISetGeneralRebuildCount - Set Rebuild Count (Specific) —
void
— AISetSpecificRebuildCount - Set Attack Wave Bully Percent —
void
— AISetBullyAttackWavePercent - Set Bully Rebuild Delay —
void
— AISetBullyRebuildDelay - Limit Bully Rebuild To Nearest Town —
void
— AINearestTownBullyRebuild - Limit Bully Wave Gather To Nearest Town —
void
— AINearestTownLimitWaveGather - Activate/Deactivate Bullies In Region —
void
— AIToggleBulliesInRegion - Reset Bully Rebuild Counts In Region —
void
— AIResetBullyRebuildCountsInRegion
# Examples
campaigns/void.sc2campaign — base.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.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)) {