new BuildingAI()
- Source:
Members
MAX_PREFERENCE_BONUS
- Source:
Schema
- Source:
archersGarrisoned
- Source:
arrowsLeft
- Source:
arrowsLeft
- Source:
arrowsLeft
- Source:
currentRound
- Source:
currentRound
- Source:
enemyUnitsQuery
- Source:
enemyUnitsQuery
- Source:
focusTargets
- Source:
focusTargets
- Source:
focusTargets
- Source:
focusTargets
- Source:
gaiaUnitsQuery
- Source:
gaiaUnitsQuery
- Source:
targetUnits
- Source:
targetUnits
- Source:
targetUnits
- Source:
targetUnits
- Source:
timer
- Source:
timer
- Source:
timer
- Source:
unitAITarget
- Source:
Methods
AddFocusTarget(ent)
Adds index to keep track of the user-targeted units supporting a queue
Parameters:
| Name | Type | Description |
|---|---|---|
ent |
ent | Target of focus-fire from unit-actions if the selection is an enemy. |
- Source:
FireArrows()
Fire arrows with random temporal distribution on prefered targets.
Called 'roundCount' times every 'RepeatTime' seconds when there are units in the range.
- Source:
GetArrowCount()
Returns the number of arrows which needs to be fired.
DefaultArrowCount + Garrisoned Archers (i.e., any unit capable
of shooting arrows from inside buildings).
- Source:
GetDefaultArrowCount()
- Source:
GetGarrisonArrowClasses()
- Source:
GetGarrisonArrowMultiplier()
- Source:
GetMaxArrowCount()
- Source:
Init()
- Source:
OnDestroy()
- Source:
OnDiplomacyChanged()
- Source:
OnGarrisonedUnitsChanged()
- Source:
OnOwnershipChanged()
- Source:
OnRangeUpdate()
Called when units enter or leave range.
- Source:
OnValueModification()
React on Attack value modifications, as it might influence the range.
- Source:
SetUnitAITarget()
- Source:
SetupGaiaRangeQuery()
- Source:
SetupRangeQuery()
Setup the Range Query to detect units coming in & out of range.
- Source:
StartTimer()
- Source: