Home › Class layouts › AI › AI::CombatOrders

Needs the Community Extension. Not available in the unmodified game; works while the Community Extension mod is active (its own functions, or raw memory access with Mem/ObjMem).

AI::CombatOrders

GameCore::AI::CombatOrders — structure, size 56 bytes (0x38).

Linux offset Member Type
0x0 SourceUnit Player::UnitID
0x8 CurrentPosition PlotCoord
0x10 MovePosition PlotCoord
0x18 AttackPosition PlotCoord
0x20 ExpectedDamage int
0x24 MyDamage int
0x28 MyDamageWithReturnStrike int
0x2c MoveIndex int
0x30 UnequalAttackIfStrikeback bool
0x31 DeathIfStrikeback bool
0x32 TargetIsReligious bool
0x33 TargetMustBeCaptured bool
0x34 TargetMustBePlundered bool