Skip to content

H7EditorArmy

Class in MMH7Game · MMH7Game.H7EditorArmy · native, config

Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7EditorMapObject › H7EditorArmy

Implements: H7DynGridObjInterface, H7IOwnable, H7IAliasable

Subclasses: H7AdventureArmy, H7CombatArmy

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

Constants

NameValue
MAX_ARMY_SIZE7

Properties

NameTypeNotes
cMaxArmySizeintconfig, editconst, protected
mAiIsBorderControlboolprotected
mBaseCreatureStacksarray<H7BaseCreatureStack>protected
mCreatureStackPropertiesarray<CreatureStackProperties>protected
mCustomizeHeroArchetypeboolprivate
mDeploymentH7Deploymentprotected
mDisableFleeSurrenderbool
mEmitterPoolParticleCompsarrayprotected
mForceManualCombatbool
mHeroArchetypeH7EditorHeroprotected
mHorseMeshSkeletalMeshComponentprotectedwrite
mIsAmbushbool
mIsNPCbool
mIsStarterHeroboolprotected
mIsTalkingbool
mLlamaAnimsAnimSet
mLlamaMeshSkeletalMesh
mOnlyDynamicLightsbool
mPlayerH7Playerprotected
mPlayerNumberH7StructsAndEnumsNative.EPlayerNumberprotected
mSiegeUnitH7EditorWarUnitprotected
mUseXPStrengthboolprotected
mWarUnitTemplatesarray<H7EditorWarUnit>protected
mWeaponMeshStaticMeshComponentprotectedwrite
mWeaponSkMeshSkeletalMeshComponentprotectedwrite
mXPStrengthintprotected

Functions

NameDeclaration
AddCreatureStackfunction AddCreatureStack(H7BaseCreatureStack Stack, optional bool isInit = false)
AddWarUnitfunction AddWarUnit(H7EditorWarUnit warUnit)
AddWarUnitTemplatefunction AddWarUnitTemplate(H7EditorWarUnit warUnit)
AllocatePooledEmitternative function AllocatePooledEmitter(ParticleSystemComponent PSC)
CacheAnimNodessimulated function CacheAnimNodes()
CanFleeOrSurrenderfunction bool CanFleeOrSurrender()
CheckFreeArmySlotfunction bool CheckFreeArmySlot()
CleanComponentsnative function CleanComponents()
CleanupEmitterPoolsevent CleanupEmitterPools()
ClearCreatureStackPropertiesfunction ClearCreatureStackProperties()
ClearMeshDatanative function ClearMeshData()
CreateBaseCreatureStackfunction CreateBaseCreatureStack()
CreateCombatArmyfunction H7CombatArmy CreateCombatArmy()
CreateCombatArmyUsingAdventureArmyfunction H7CombatArmy CreateCombatArmyUsingAdventureArmy(H7AdventureArmy Army, bool IsAttacker, optional bool isForQuickCombat = false)
CreateCreatureStackProperiesfunction CreateCreatureStackProperies()
CreateHerofunction CreateHero(optional SavegameHeroStruct SaveGameData)
CreateStackPropertyFromBasefunction CreatureStackProperties CreateStackPropertyFromBase(H7BaseCreatureStack Stack)
EnsureBaseStackSlotExistencefunction EnsureBaseStackSlotExistence(int Length)
GetAiIsBorderControlfunction bool GetAiIsBorderControl()
GetBaseCreatureStackIndexfunction int GetBaseCreatureStackIndex(H7BaseCreatureStack Stack)
GetBaseCreatureStackLengthfunction int GetBaseCreatureStackLength()
GetBaseCreatureStacksfunction array<H7BaseCreatureStack> GetBaseCreatureStacks()
GetBaseCreatureStacksDereferencedfunction array<H7BaseCreatureStack> GetBaseCreatureStacksDereferenced()
GetBaseStackBySourceSlotIdfunction H7BaseCreatureStack GetBaseStackBySourceSlotId(int Id)
GetCreatureAmountfunction int GetCreatureAmount(H7Creature Creature)
GetCreatureAmountOfTierfunction int GetCreatureAmountOfTier(H7StructsAndEnumsNative.ECreatureTier Tier)
GetCreatureAmountTotalfunction int GetCreatureAmountTotal()
GetCreaturePropertyStrengthnative function float GetCreaturePropertyStrength(CreatureStackProperties stackProperty)
GetCreatureStackPropertiesfunction array<CreatureStackProperties> GetCreatureStackProperties()
GetDeploymentfunction H7Deployment GetDeployment()
GetEditorHerofunction H7EditorHero GetEditorHero()
GetExperienceForDefeatingfunction int GetExperienceForDefeating()
GetHeroPowerfunction float GetHeroPower()
GetHeroStrengthValuestatic native function float GetHeroStrengthValue(int HeroLevel)
GetHeroTemplatefunction H7EditorHero GetHeroTemplate()
GetHeroTemplateSourceevent H7EditorHero GetHeroTemplateSource()
GetIndexOfStackfunction int GetIndexOfStack(H7BaseCreatureStack compareStack)
GetMaxArmySizefunction int GetMaxArmySize()
GetNumberOfFilledSlotsfunction int GetNumberOfFilledSlots()
GetNumberOfMeleeStacksevent int GetNumberOfMeleeStacks()
GetPlayernative function H7Player GetPlayer()
GetPlayerNumberfunction H7StructsAndEnumsNative.EPlayerNumber GetPlayerNumber()
GetRandomCreatureStackSizefunction int GetRandomCreatureStackSize(H7Creature Creature, float xpToUse)
GetStackByIDStringfunction H7BaseCreatureStack GetStackByIDString(string creatureName)
GetStackByNamefunction H7BaseCreatureStack GetStackByName(string creatureName)
GetStrengthValuenative function float GetStrengthValue(optional bool withHero = false, optional array<H7BaseCreatureStack> additionalStacks)
GetStrongestCreaturenative function H7Creature GetStrongestCreature()
GetStrongestPropertyCreaturenative function H7Creature GetStrongestPropertyCreature()
GetWarUnitByTypefunction H7EditorWarUnit GetWarUnitByType(H7StructsAndEnumsNative.EWarUnitClass unitClass)
GetWarUnitTemplatesfunction array<H7EditorWarUnit> GetWarUnitTemplates()
HasHybridWarUnitfunction bool HasHybridWarUnit()
HasWarUnitTypefunction bool HasWarUnitType(H7StructsAndEnumsNative.EWarUnitClass unitClass)
Initevent Init(H7Player PlayerOwner, optional H7AdventureMapCell StartPos, optional Vector garrisonLocation, optional bool pruneStacks)
InitRandomValuesfunction InitRandomValues()
InsertCreatureStackfunction InsertCreatureStack(int Index, H7BaseCreatureStack Stack)
IsForcingManualCombatfunction bool IsForcingManualCombat()
IsNPCfunction bool IsNPC()
IsStarterHerofunction bool IsStarterHero()
IsTalkingfunction bool IsTalking()
LoadMeshesnative function LoadMeshes(optional bool useStrongestCreature)
OnPooledAttachedParticleSystemFinishedsimulated function OnPooledAttachedParticleSystemFinished(ParticleSystemComponent PSC)
OverrideDeploymentFromBaseStacksfunction OverrideDeploymentFromBaseStacks(optional bool markAllStacksAsUndeployed = true)
PlayParticleEffectevent bool PlayParticleEffect(const AnimNotify_PlayParticleEffect AnimNotifyData)
PostBeginPlaysimulated event PostBeginPlay()
PostCreateHerofunction PostCreateHero()
PrintStateToLogfunction PrintStateToLog(optional string armyName)
PruneStackPropertiesnative function PruneStackProperties()
PutCreatureStackToEmptySlotfunction int PutCreatureStackToEmptySlot(H7BaseCreatureStack Stack)
RecyclePooledEmittersimulated function RecyclePooledEmitter(ParticleSystemComponent PSC)
RemoveWarUnitfunction RemoveWarUnit(H7EditorWarUnit warUnit)
SetAiIsBorderControlfunction SetAiIsBorderControl(bool Enable)
SetArmyIsAmbushfunction SetArmyIsAmbush(bool Value)
SetBaseCreatureStacksfunction SetBaseCreatureStacks(array<H7BaseCreatureStack> stacks)
SetBaseCreatureStacksToCopyfunction SetBaseCreatureStacksToCopy(array<H7BaseCreatureStack> stacks)
SetCellfunction SetCell(H7AdventureMapCell newCellPos, optional bool updateHeroWorldLocation = true, optional bool registerCell = true, optional bool isInit = true)
SetCreatureStackPropertiesfunction SetCreatureStackProperties(array<CreatureStackProperties> stackProperties)
SetDeploymentfunction SetDeployment(H7Deployment Value)
SetForcingManualCombatfunction SetForcingManualCombat(bool Value)
SetHeroTemplatefunction SetHeroTemplate(H7EditorHero Hero)
SetNPCfunction SetNPC(bool IsNPC)
SetPlayerfunction SetPlayer(H7Player NewPlayer)
SetStarterHerofunction SetStarterHero(bool NewValue)
SetTalkingfunction SetTalking(bool IsTalking)
SetWarUnitTemplatesfunction SetWarUnitTemplates(array<H7EditorWarUnit> warUnitTemplates)
SplitCreatureStackToEmptySlotstatic function SplitCreatureStackToEmptySlot(H7EditorArmy sourceArmy, H7EditorArmy targetArmy, int SourceIndex, int splitCount, optional int TargetIndex = -1, optional bool forceTransferToTargetArmy = false)
SplitCreatureStackToEmptySlotCompletestatic function bool SplitCreatureStackToEmptySlotComplete(H7EditorArmy sourceArmy, H7EditorArmy altArmy, int indexSource, int splitCount, out int TargetIndex, bool forceTransferToTargetArmy)
SyncBaseStackStartingSizeToCurrentSizefunction SyncBaseStackStartingSizeToCurrentSize()
TransferCreatureStacksByArmystatic function TransferCreatureStacksByArmy(H7EditorArmy requesterArmy, H7EditorArmy sourceArmy, H7EditorArmy targetArmy, int indexSource, int indexTarget, optional int splitAmount, optional bool forceTransferToTargetArmy)
TransferCreatureStacksByArmyCompletestatic function bool TransferCreatureStacksByArmyComplete(H7EditorArmy sourceArmy, H7EditorArmy targetArmy, int indexSource, int indexTarget, optional int splitAmount)
UpdateMeshesnative function UpdateMeshes(optional H7Creature Creature)
UpdateWeaponAttachmentsnative function UpdateWeaponAttachments()
UseLlamaMeshevent bool UseLlamaMesh()

Default values

cMaxArmySize=7

Inherited

FromMembers
H7EditorMapObjectProperties: AnimNodeSeqComp, mDynamicLightEnv, mFX, mHideMeshAndFX, mMesh, mShouldOutlineSkelMesh, mSnapToGroundType, mSnapType, mTerrainOffset
Functions: GetFX, GetMesh, GetMeshComp, SetMesh, SetShouldHideMeshAndFX, SetVisibility, ToggleVisibility
SkeletalMeshActorMAT1 properties, 13 functions
SkeletalMeshCinematicActor0 properties, 0 functions
SkeletalMeshActor15 properties, 28 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions