Skip to content

H7BaseCreatureStack

Class in MMH7Game · MMH7Game.H7BaseCreatureStack · native

Object › H7BaseCreatureStack

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

Properties

NameTypeNotes
mAILockboolprotected
mCustomPositionXint
mCustomPositionYint
mDismissDisabledboolprotected
mIsLocalGuardboolprotected
mIsUnDeployedboolprotected
mRemainingGrowthfloatprotected
mSizeint
mSpawnedStackOnMapH7CreatureStacktransient
mStackSizeAtMapStartintprotected
mStartingSizeintprotected
mTypeH7Creatureprotected
mUpgradeLockboolprotected
mUseCustomPositionbool

Functions

NameDeclaration
AddToStackevent AddToStack(int Value)
CreateBaseCreatureStackstatic function H7BaseCreatureStack CreateBaseCreatureStack(H7Creature Type, int Size, optional bool aiLock, optional bool dismissDisabled, optional bool customPos, optional int customPosX = -1, optional int customPosY = -1, optional bool updateStartingSize, optional bool isLocalGuard, optional int stackSizeAtMapStart)
DumpCurrentStatefunction DumpCurrentState()
GetCreatureStackStrengthnative function float GetCreatureStackStrength()
GetCustomPositionBoolfunction bool GetCustomPositionBool()
GetCustomPositionXfunction int GetCustomPositionX()
GetCustomPositionYfunction int GetCustomPositionY()
GetObfuscatedSizestatic function string GetObfuscatedSize(int StackSize)
GetRemainingGrowthfunction float GetRemainingGrowth()
GetSpawnedStackOnMapfunction H7CreatureStack GetSpawnedStackOnMap()
GetStackSizefunction int GetStackSize()
GetStackSizeAtMapStartfunction int GetStackSizeAtMapStart()
GetStackSizeObfuscatedfunction string GetStackSizeObfuscated()
GetStackTypefunction H7Creature GetStackType()
GetStartingSizefunction int GetStartingSize()
HasAILockfunction bool HasAILock()
IsDeployedfunction bool IsDeployed()
IsDismissDisabledfunction bool IsDismissDisabled()
isLocalGuardfunction bool isLocalGuard()
IsLockedForUpgradefunction bool IsLockedForUpgrade()
IsUnitTypefunction bool IsUnitType(H7BaseCreatureStack Stack)
SetAILockfunction SetAILock(bool B)
SetCustomPositionfunction SetCustomPosition(bool flag, int X, int Y)
SetDeployedfunction SetDeployed(bool val)
SetDismissDisabledfunction SetDismissDisabled(bool B)
SetIsLocalGuardfunction SetIsLocalGuard(bool isLocalGuard)
SetLockedForUpgradefunction SetLockedForUpgrade(bool val)
SetRemainingGrowthfunction SetRemainingGrowth(float remainingGrowth)
SetSpawnedStackOnMapfunction SetSpawnedStackOnMap(H7CreatureStack Type)
SetStackSizefunction SetStackSize(int Size, optional bool updateStartingSize)
SetStackSizeAtMapStartfunction SetStackSizeAtMapStart(int Size)
SetStackTypefunction SetStackType(H7Creature Type)
SetStartingSizefunction SetStartingSize(int startingSize)
TransferCreatureStacksByArraystatic function bool TransferCreatureStacksByArray(out array<H7BaseCreatureStack> sourceStacks, out array<H7BaseCreatureStack> targetStacks, int indexSource, int indexTarget, optional int splitAmount, optional bool withinSameArmy = false)

Default values

mSize=1

Inherited

FromMembers
Object13 properties, 308 functions