Skip to content

H7AiActionCongregate

Class in MMH7Game · MMH7Game.H7AiActionCongregate

Object › H7AiActionBase › H7AiActionCongregate

Using it from Lua
h7.find_all("H7AiActionCongregate")            -- live instances
h7.find_class("MMH7Game.H7AiActionCongregate")   -- the class
h7.hook("MMH7Game.H7AiActionCongregate.DebugName", fn)

Properties

NameTypeNotes
mUCongregateH7AiUtilityCongregateprotected

Functions

NameDeclaration
DebugNamefunction string DebugName()
GetStackSizeGlobalstatic function float GetStackSizeGlobal(H7Player dasPlayer, H7Creature StackType)
GetStackStrengthGlobalstatic function float GetStackStrengthGlobal(H7Player dasPlayer, H7Creature StackType)
PerformActionfunction bool PerformAction(H7Unit Unit, AiActionScore Score)
RunScoresAdvfunction RunScoresAdv(H7AiAdventureSensors sensors, H7Unit currentUnit, out array<AiActionScore> scores, optional H7AdventureConfiguration cfg)
Setupfunction Setup()
ShouldCongregateprotected function bool ShouldCongregate(H7AdventureArmy Army, H7AdventureArmy receivingArmy)

Inherited

FromMembers
H7AiActionBaseProperties: mABID
Functions: DebugName, GetAdvActionID, PerformAction, PerformActionTown, RunScores, RunScoresAdv, RunScoresTown
Object13 properties, 308 functions