Skip to content

H7Creature

Class in MMH7Game · MMH7Game.H7Creature · native, perobjectconfig

Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7Unit › H7Creature

Implements: H7IAliasable, H7IThumbnailable

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

Constants

NameValue
POWER_ATTACK_MOD1
POWER_DESTINY_MOD1
POWER_HEALTH_MOD0.3f
POWER_LEADERSHIP_MOD1
POWER_MAGIC_DEFENSE_MOD1
POWER_MIGHT_DEFENSE_MOD1

Properties

NameTypeNotes
CurrentDeathMaterialEffectsarrayno declaration: type is approximate
mAbilitiesarray<H7CreatureAbility>protected
mAbility1EndSoundObjectno declaration: type is approximate
mAbility1SoundObjectno declaration: type is approximate
mAbility2EndSoundObjectno declaration: type is approximate
mAbility2SoundObjectno declaration: type is approximate
mAdventureMapIdleSoundObjectno declaration: type is approximate
mAiBaseUtilityfloatprotected
mAiCreatureCategoryH7StructsAndEnums.ECreatureCategoryprotected
mAmmointprotected
mAnimControlObjectno declaration: type is approximate
mAttackRangeH7StructsAndEnumsNative.EAttackRangeprotected
mAttackSoundObjectno declaration: type is approximate
mBaseCreatureH7Creatureprotected
mBaseSizeH7StructsAndEnumsNative.ECellSizeprotected
mCastSoundObjectno declaration: type is approximate
mColorLerpBufferfloatno declaration: type is approximate
mCreatureLevelH7StructsAndEnumsNative.ECreatureLevelprotected
mCreatureMaterialsarrayno declaration: type is approximate
mCritAnimationForRangedboolprotected
mCriticalAttackSoundObjectno declaration: type is approximate
mDefendAbilityH7BaseAbilityprotected
mDefendSoundObjectno declaration: type is approximate
mDeploymentSlotIDReferenceintno declaration: type is approximate
mDieSoundObjectno declaration: type is approximate
mEffectToPlayObjectno declaration: type is approximate
mFadeInAnimDoneboolprotectedwrite
mFadeInMaterialFXboolprotected
mFadeOutMaterialFXboolprotected
mFlyEndSoundsObjectno declaration: type is approximate
mFlyStartSoundsObjectno declaration: type is approximate
mFXObjectno declaration: type is approximate
mGetHitSoundObjectno declaration: type is approximate
mGrowthratePercentintprotected
mHasPendingMaterialFXboolprotected
mHeroPediaOverwriteH7Creatureprotected
mHitpointsintprotected
mIdleSpecialSoundObjectno declaration: type is approximate
mIsFlankableboolprotected
mIsFullFlankableboolprotected
mIsHoveringboolprotected
mIsVisibleboolprotected
mMeleePenaltyboolprotected
mMeleeRetaliationOverrideH7BaseAbilityprotected
mMoralAbilityH7BaseAbilityprotected
mMovementTypeH7StructsAndEnumsNative.EMovementTypeprotected
mMoveStartSoundsObjectno declaration: type is approximate
mPowerValueintprotected
mRandomFlySoundsObjectno declaration: type is approximate
mRandomMoveSoundsObjectno declaration: type is approximate
mRangeAttackSoundObjectno declaration: type is approximate
mRangedRetaliationOverrideH7BaseAbilityprotected
mResurrectableboolprotected
mRetaliationAbilityH7BaseAbilityprotected
mRetaliationChargesintprotected
mSkipDeathAnimboolprotected
mSkirmishAttackRangeH7StructsAndEnumsNative.EAttackRangeprotected
mSkirmishGrowthRatePercentintno declaration: type is approximate
mSkirmishHitpointsintno declaration: type is approximate
mSkirmishIsFlankableboolprotected
mSkirmishIsFullFlankableboolprotected
mSkirmishMeleePenaltyboolprotected
mSkirmishPowerValueintno declaration: type is approximate
mSkirmishRetaliationChargesintno declaration: type is approximate
mSkirmishXpintno declaration: type is approximate
mStopRandomFlySoundEventObjectno declaration: type is approximate
mStopRandomMoveSoundEventObjectno declaration: type is approximate
mSummonSoundObjectno declaration: type is approximate
mTemplateObjectno declaration: type is approximate
mTierH7StructsAndEnumsNative.ECreatureTierprotected
mTimeAtEffectStartfloatno declaration: type is approximate
mTurnLeftSoundsObjectno declaration: type is approximate
mTurnRightSoundsObjectno declaration: type is approximate
mUndoDeathFXboolprotected
mUpgradeOfCoreCreatureH7Creatureprotected
mUseAmmoboolprotected
mVictorySoundObjectno declaration: type is approximate
mVisualsDynLoadObjectno declaration: type is approximate
mWeapFXarrayno declaration: type is approximate
mXpintprotected

Functions

NameDeclaration
CanMoraleInQuickCombatnative function bool CanMoraleInQuickCombat(array<H7BaseAbility> criteria)
CreateCreaturefunction CreateCreature(H7Creature Template)
CreatureHeadingfunction H7StructsAndEnumsNative.EDirection CreatureHeading()
DoRagdollfunction DoRagdoll()
EnableAdventureIdleBridgefunction EnableAdventureIdleBridge(bool val)
FadeBackEffectMaterialValuesfunction FadeBackEffectMaterialValues(float DeltaTime)
GetAbilitiesfunction array<H7CreatureAbility> GetAbilities()
GetAmmofunction int GetAmmo()
GetAnimControlfunction H7CreatureAnimControl GetAnimControl()
GetAttackRangefunction H7StructsAndEnumsNative.EAttackRange GetAttackRange()
GetBaseCreaturefunction H7Creature GetBaseCreature()
GetBaseCreatureNamefunction string GetBaseCreatureName()
GetBaseSizefunction H7StructsAndEnumsNative.ECellSize GetBaseSize()
GetBaseStatByIDnative function float GetBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetCreatureBaseUtilityfunction float GetCreatureBaseUtility()
GetCreatureCategoryfunction H7StructsAndEnums.ECreatureCategory GetCreatureCategory()
GetCreatureIsVisiblefunction bool GetCreatureIsVisible()
GetCreatureLevelfunction H7StructsAndEnumsNative.ECreatureLevel GetCreatureLevel()
GetCreaturePowerfunction float GetCreaturePower()
GetDefendAbilityfunction H7BaseAbility GetDefendAbility()
GetDeploymentSlotIDfunction int GetDeploymentSlotID()
GetDestinyfunction int GetDestiny()
GetExperiencePointsfunction int GetExperiencePoints()
GetFXScalefunction float GetFXScale()
GetHeightfunction float GetHeight()
GetHeightPosfunction Vector GetHeightPos(float Offset)
GetHitPointsBasefunction int GetHitPointsBase()
GetLeadershipevent int GetLeadership()
GetMeshCenternative function Vector GetMeshCenter()
GetMeshRadiusfunction float GetMeshRadius()
GetModifiersByIDnative function GetModifiersByID(out array<H7MeModifiesStat> outStats, H7StructsAndEnumsNative.EStat desiredStat, optional H7StructsAndEnumsNative.EOperationType exclusiveFirstOT = 255, optional H7StructsAndEnumsNative.EOperationType exclusiveSecondOT = 255, optional bool nextRound)
GetMoralAbilityfunction H7BaseAbility GetMoralAbility()
GetMovementTypefunction H7StructsAndEnumsNative.EMovementType GetMovementType()
GetOverwriteIDStringfunction string GetOverwriteIDString()
GetOwnerfunction H7CreatureStack GetOwner()
GetQuickCombatSubstituteImpactnative function int GetQuickCombatSubstituteImpact(H7StructsAndEnumsNative.EQuickCombatSubstitute Substitute)
GetResistanceModifierFornative function float GetResistanceModifierFor(H7StructsAndEnumsNative.EAbilitySchool school, array<H7StructsAndEnumsNative.ESpellTag> tags, optional bool checkOnlyBuffs = false, optional bool forcedResistanceOnly = false)
GetRetaliationAbilityfunction H7BaseAbility GetRetaliationAbility()
GetRetaliationChargesfunction int GetRetaliationCharges()
GetRetaliationOverrideMeleefunction H7BaseAbility GetRetaliationOverrideMelee()
GetRetaliationOverrideRangedfunction H7BaseAbility GetRetaliationOverrideRanged()
GetSkeletalMeshfunction SkeletalMeshComponent GetSkeletalMesh()
GetSocketLocationnative function Vector GetSocketLocation(name SocketName)
GetTierfunction H7StructsAndEnumsNative.ECreatureTier GetTier()
GetTierStringfunction string GetTierString()
GetUpgradedCreaturefunction H7Creature GetUpgradedCreature()
GetUpgradedNamefunction string GetUpgradedName()
GetVisualsevent H7CreatureVisuals GetVisuals()
GetWarUnitClassfunction H7StructsAndEnumsNative.EWarUnitClass GetWarUnitClass()
GetWeeklyGrowthRatefunction int GetWeeklyGrowthRate()
GetXSizefunction int GetXSize()
GetYSizefunction int GetYSize()
HasDeathMaterialFXfunction bool HasDeathMaterialFX()
HasMeleePenaltyfunction bool HasMeleePenalty()
HasPendingMaterialFXfunction bool HasPendingMaterialFX()
HideMeshesfunction HideMeshes()
InitFXfunction InitFX()
IsBaseCreaturefunction bool IsBaseCreature()
IsCritAnimPlayedForRangedfunction bool IsCritAnimPlayedForRanged()
IsFlankablefunction bool IsFlankable()
IsFullFlankablefunction bool IsFullFlankable()
isHoveringfunction bool isHovering()
IsResurrectablefunction bool IsResurrectable()
IsUpgradeVersionevent bool IsUpgradeVersion()
PlayAbility1EndSoundfunction PlayAbility1EndSound()
PlayAbility1Soundfunction PlayAbility1Sound()
PlayAbility2Soundfunction PlayAbility2Sound()
PlayAdventureMapIdleSoundfunction PlayAdventureMapIdleSound(Actor creator)
PlayAttackSoundfunction PlayAttackSound()
PlayCastSoundfunction PlayCastSound()
PlayCriticalAttackSoundfunction PlayCriticalAttackSound()
PlayDeathEffectsfunction PlayDeathEffects(optional bool undo = false)
PlayDeathMaterialEffectsfunction PlayDeathMaterialEffects()
PlayDefendSoundfunction PlayDefendSound()
PlayDieSoundfunction PlayDieSound()
PlayFlyEndSoundfunction PlayFlyEndSound()
PlayFlyStartSoundfunction PlayFlyStartSound()
PlayGetHitSoundfunction PlayGetHitSound()
PlayIdleSpecialSoundfunction PlayIdleSpecialSound()
PlayMoveStartSoundfunction PlayMoveStartSound()
PlayRandomFlySoundfunction PlayRandomFlySound()
PlayRandomMoveSoundfunction PlayRandomMoveSound()
PlayRangeAttackSoundfunction PlayRangeAttackSound()
PlaySummonSoundfunction PlaySummonSound()
PlayTurnLeftSoundfunction PlayTurnLeftSound()
PlayTurnRightSoundfunction PlayTurnRightSound()
PlayVictorySoundfunction PlayVictorySound()
PostBeginPlaysimulated function PostBeginPlay()
PostInitAnimTreesimulated event PostInitAnimTree(SkeletalMeshComponent SkelComp)
ResumeMaterialEffectsfunction ResumeMaterialEffects()
SetCreatureLevelfunction SetCreatureLevel(H7StructsAndEnumsNative.ECreatureLevel lvl)
SetCreatureMeshnative function SetCreatureMesh()
SetDeploymentSlotIDfunction SetDeploymentSlotID(int val)
SetEffectsMaterialValuesfunction SetEffectsMaterialValues(float DeltaTime)
SetFadeInAnimDonefunction SetFadeInAnimDone(bool V)
SetIsFlankablefunction SetIsFlankable(bool Value)
SetIsFullFlankablefunction SetIsFullFlankable(bool Value)
SetIsHoveringfunction SetIsHovering(bool isHovering, optional bool evenIfBusy = false)
SetLLamaMeshnative function SetLLamaMesh()
SetMeshesnative function SetMeshes()
SetRetaliationChargesfunction SetRetaliationCharges(int newRetaliationCharges)
SetTeamColorfunction SetTeamColor(int TeamID)
SetWeeklyGrowthRatefunction SetWeeklyGrowthRate(int Value)
ShowMeshesfunction ShowMeshes()
SkipDeathAnimfunction SkipDeathAnim(bool doSkip)
StartSetEffectMaterialValuesfunction StartSetEffectMaterialValues(H7FXObject Effect)
StopRandomFlySoundfunction StopRandomFlySound()
StopRandomMoveSoundfunction StopRandomMoveSound()
Tickfunction Tick(float DeltaTime)
UpdateParticleTranslucencysimulated function UpdateParticleTranslucency(ParticleSystemComponent PSC)
UsesAmmofunction bool UsesAmmo()

Default values

mIsFlankable=true
mIsFullFlankable=true
mResurrectable=true
mIsVisible=true
mPowerValue=5
mHitpoints=20
mRetaliationCharges=1
mGrowthratePercent=100
mAttack=1
mDefense=1
mLeadership=1
mDestiny=1
mMinimumDamage=1
mMaximumDamage=2
mMovementPoints=10

Inherited

FromMembers
H7UnitProperties: mAbilityManager, mAnimSoundSpeedManipulator, mArmy, mArmyAdventure, mArtwork, mAttack, mAttackCount, mAttackCountMod, mBuffManager, mCasualtyStacks, mCollider, mColliderHeight, mColliderRadius, mCombatCtrl, mCurrentWave, mDefense, mDestiny, mDoStatusCheck, mEffectManager, mEmitterPoolParticleComps, mEventManager, mFaction, mFactionSymbol, mFinishedCommand, mFlankingBonus, mGhostWalkParticles, mGridPos, mHasBadMoral, mIcon, Mid, mIgnoreAllegiances, mInitiative, mIsAdditionalTurn, mIsDoneForAI, mIsMoralTurn, mIsWaiting, mIsWaitTurn, mKillsOnCurrentTurn, mLastPath, mLastQueuePosition, mLeadership, mLore, mLoreInst, mLuckAbility, mLuckType, mMagicAbs, mMarkForSkipTurn, mMaximumDamage, mMeleeAttackAbilityTemplate, mMinimumDamage, mMoveCount, mMovementPoints, mName, mNameInst, mNeedsPrivileg, mNewCreaturePosition, mOverrideAutoCollider, mOverrideWithAI, mPrivilegID, mProjectileStartSocket, mRange, mRangedAttackAbilityTemplate, mRotateRandom, mSchoolType, mSkipTurn, mSkirmishAttack, mSkirmishDefense, mSkirmishDestiny, mSkirmishInitiative, mSkirmishLeadership, mSkirmishMaximumDamage, mSkirmishMinimumDamage, mSkirmishMovementPoints, mSkirmishSchoolType, mSkirmishUnitCost, mStatCache, mStatModSourceBuffer, mSubstituteLuckAbility, mTeleportationEndSound, mTeleportationStartSound, mTeleportEndEffect, mTeleportStartEffect, mTriggerTurnEndEvents, mTriggerTurnStartEvents, mTsunamiCasterValues, mUnitCost, mWaitAbility, mWaitClicked, mWaveSource
Functions: AllocatePooledEmitter, ApplyDamage, BeforeEndTurn, BeginAction, BeginTurn, CanAttack, CanDefend, CanMakeAction, CanMove, ChangeUnitAnimationSoundSpeed, CleanupEmitterPools, ClearStatCache, ClearTurns, DataChanged, DecreaseBaseStatByID, Defend, DeleteImage, Deserialize, DeserializeReferences, Destroyed, DisplayStatChangeFloat, DisplayStatChangeLog, DoDeathMaterialEffectFading, DoLuckRoll, DumpModifiers, EnableUnitMoveSound, EnableUnitSound, EndAction, EndMoving, EndTurn, FinishedCommand, GetAbilityManager, GetActionID, GetAddBoniOnStatByID, GetAdventureArmy, GetAllShieldEffects, GetAnimSoundSpeedManipulator, GetArmy, GetAttack, GetAttackCount, GetAttackType, GetBaseStatByID, GetBuffManager, GetColliderHeight, GetColliderRadius, GetCombatArmy, GetCurrentLuckType, GetDefense, GetDefenseBase, GetDestiny, GetDestinyBase, GetDoneForAI, GetEffectContainerForStat, GetEffectManager, GetEndTeleportFXSound, GetEntityType, GetEventManager, GetFaction, GetFlashArtworkPath, GetFlashIconPath, GetForeignMoralePenaltyModifier, GetGhostWalkParticleFX, GetGridPosition, GetHeightPos, GetHitPoints, GetIcon, GetID, GetIDString, GetIgnoreAllegiances, GetInitiative, GetKillsOnCurrentTurn, GetLastQueuePosition, GetLastWalkedPath, GetLastWalkedPathLength, GetLeadership, GetLeadershipBase, GetLocation, GetLore, GetLuckAbility, GetLuckDestiny, GetMagic, GetMaximumDamage, GetMaximumDamageBase, GetMeleeAttackAbility, GetMeshCenter, GetMeshComponent, GetMinimumDamage, GetMinimumDamageBase, GetModifiedStatByID, GetModifiersByID, GetMoveCount, GetMovementPoints, GetMovementPointsBase, GetMultiBoniOnStatByID, GetName, GetNegotiationChance, GetNextInitiative, GetOriginal, GetPlayer, GetPreparedAbility, GetProjectileStartSocketName, GetRangedAttackAbility, GetResistanceModifierFor, GetResistanceModifierForTag, GetSchool, GetSkipTurnAbility, GetSocketLocation, GetStackSize, GetStartTeleportFXSound, GetStatModSourceList, GetSurrenderCostModifier, GetTeleportEndParticleFX, GetTeleportStartParticleFX, GetUnitBaseSize, GetUnitBaseSizeInt, GetUnitCost, GetUnitName, GetWaitAbility, HasBadMoral, HasFullAction, HasPreparedAbility, HasPreparedAbilityId, HasTeleportEndFX, HasTeleportStartFX, HasWaitClicked, HitUnit, IncreaseBaseStatByID, Init, InitCurrentWave, IsAdditionalTurn, IsAttacker, IsAutoColliderOverridden, IsCasting, IsControlledByAI, IsDead, IsDefaultAttackActive, IsMarkedForTurnSkip, IsMoralTurn, IsMoving, IsMyDefaultAbility, IsOverridenByAI, IsRanged, IsUnderAttack, IsWaiting, IsWaitTurn, LoadIcon, MakeTurn, MarkForTurnSkip, MPIsYourTurn, NextWaveStep, OnGetBuffed, OnPooledAttachedParticleSystemFinished, PlayParticleEffect, PostBeginPlay, PrepareAbility, PrepareDefaultAbility, RecalculatePostAnimInput, RecyclePooledEmitter, ResetLuckType, ResetPreparedAbility, ResetTurnCount, Serialize, SetAdditionalTurn, SetArmy, SetBaseStatByID, SetCommandFinished, SetCurrentLuckType, SetDoneForAI, SetIgnoreAllegiances, SetInitiative, SetKillsOnCurrentTurn, SetLastQueuePosition, SetLastWalkedPath, SetMeleeAttackAbility, SetMoralTurn, SetNewCreaturePosition, SetOverrideByAI, SetRangedAttackAbility, SetSchoolType, SetSkipTurn, SetSubstituteLuckAbilty, SetTriggerStartTurnEvents, SetUnitCosts, SetWaitAbility, SetWaitClick, SetWaiting, ShowFloatingText, StatusChanged, Think, TriggerEvents, TriggerStartTurnEvents, UndoDeathMaterialFX, UpdateParticleTranslucency, UseAttack, UseMove, UsePreparedAbility, Wait, WaveCatchCreatureStack
SkeletalMeshActorMAT1 properties, 13 functions
SkeletalMeshCinematicActor0 properties, 0 functions
SkeletalMeshActor15 properties, 28 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions