Skip to content

H7AiActionAttackCreatureStack

Class in MMH7Game · MMH7Game.H7AiActionAttackCreatureStack

Object › H7AiActionBase › H7AiActionAttackCreatureStack

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

Properties

NameTypeNotes
mInUCasualityCountH7AiUtilityRangeCasualityCountprotected
mInUCreatureDamageH7AiUtilityRangeCreatureDamageprotected
mInUGoldLossH7AiUtilityInflictedGoldLossprotected
mInUHasAdjacentEnemyH7AiUtilityHasAdjacentEnemyprotected
mInUHasAnyAdjacentEnemyH7AiUtilityHasAnyAdjacentEnemyprotected

Functions

NameDeclaration
DebugNamefunction string DebugName()
GetBestDirectionToAttackfunction H7StructsAndEnumsNative.EDirection GetBestDirectionToAttack(H7Unit Unit, H7CreatureStack Target, optional out H7CombatMapCell HitCell)
PerformActionfunction bool PerformAction(H7Unit Unit, AiActionScore Score)
RunScoresfunction RunScores(H7AiCombatSensors sensors, H7Unit currentUnit, out array<AiActionScore> scores)
Setupfunction Setup()

Inherited

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