H7Creature¶
Class in MMH7Game · MMH7Game.H7Creature · native, perobjectconfig
Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7Unit › H7Creature
Implements: H7IAliasable, H7IThumbnailable
Using it from Lua
Constants¶
| Name | Value |
|---|---|
POWER_ATTACK_MOD | 1 |
POWER_DESTINY_MOD | 1 |
POWER_HEALTH_MOD | 0.3f |
POWER_LEADERSHIP_MOD | 1 |
POWER_MAGIC_DEFENSE_MOD | 1 |
POWER_MIGHT_DEFENSE_MOD | 1 |
Properties¶
| Name | Type | Notes |
|---|---|---|
CurrentDeathMaterialEffects | array | no declaration: type is approximate |
mAbilities | array<H7CreatureAbility> | protected |
mAbility1EndSound | Object | no declaration: type is approximate |
mAbility1Sound | Object | no declaration: type is approximate |
mAbility2EndSound | Object | no declaration: type is approximate |
mAbility2Sound | Object | no declaration: type is approximate |
mAdventureMapIdleSound | Object | no declaration: type is approximate |
mAiBaseUtility | float | protected |
mAiCreatureCategory | H7StructsAndEnums.ECreatureCategory | protected |
mAmmo | int | protected |
mAnimControl | Object | no declaration: type is approximate |
mAttackRange | H7StructsAndEnumsNative.EAttackRange | protected |
mAttackSound | Object | no declaration: type is approximate |
mBaseCreature | H7Creature | protected |
mBaseSize | H7StructsAndEnumsNative.ECellSize | protected |
mCastSound | Object | no declaration: type is approximate |
mColorLerpBuffer | float | no declaration: type is approximate |
mCreatureLevel | H7StructsAndEnumsNative.ECreatureLevel | protected |
mCreatureMaterials | array | no declaration: type is approximate |
mCritAnimationForRanged | bool | protected |
mCriticalAttackSound | Object | no declaration: type is approximate |
mDefendAbility | H7BaseAbility | protected |
mDefendSound | Object | no declaration: type is approximate |
mDeploymentSlotIDReference | int | no declaration: type is approximate |
mDieSound | Object | no declaration: type is approximate |
mEffectToPlay | Object | no declaration: type is approximate |
mFadeInAnimDone | bool | protectedwrite |
mFadeInMaterialFX | bool | protected |
mFadeOutMaterialFX | bool | protected |
mFlyEndSounds | Object | no declaration: type is approximate |
mFlyStartSounds | Object | no declaration: type is approximate |
mFX | Object | no declaration: type is approximate |
mGetHitSound | Object | no declaration: type is approximate |
mGrowthratePercent | int | protected |
mHasPendingMaterialFX | bool | protected |
mHeroPediaOverwrite | H7Creature | protected |
mHitpoints | int | protected |
mIdleSpecialSound | Object | no declaration: type is approximate |
mIsFlankable | bool | protected |
mIsFullFlankable | bool | protected |
mIsHovering | bool | protected |
mIsVisible | bool | protected |
mMeleePenalty | bool | protected |
mMeleeRetaliationOverride | H7BaseAbility | protected |
mMoralAbility | H7BaseAbility | protected |
mMovementType | H7StructsAndEnumsNative.EMovementType | protected |
mMoveStartSounds | Object | no declaration: type is approximate |
mPowerValue | int | protected |
mRandomFlySounds | Object | no declaration: type is approximate |
mRandomMoveSounds | Object | no declaration: type is approximate |
mRangeAttackSound | Object | no declaration: type is approximate |
mRangedRetaliationOverride | H7BaseAbility | protected |
mResurrectable | bool | protected |
mRetaliationAbility | H7BaseAbility | protected |
mRetaliationCharges | int | protected |
mSkipDeathAnim | bool | protected |
mSkirmishAttackRange | H7StructsAndEnumsNative.EAttackRange | protected |
mSkirmishGrowthRatePercent | int | no declaration: type is approximate |
mSkirmishHitpoints | int | no declaration: type is approximate |
mSkirmishIsFlankable | bool | protected |
mSkirmishIsFullFlankable | bool | protected |
mSkirmishMeleePenalty | bool | protected |
mSkirmishPowerValue | int | no declaration: type is approximate |
mSkirmishRetaliationCharges | int | no declaration: type is approximate |
mSkirmishXp | int | no declaration: type is approximate |
mStopRandomFlySoundEvent | Object | no declaration: type is approximate |
mStopRandomMoveSoundEvent | Object | no declaration: type is approximate |
mSummonSound | Object | no declaration: type is approximate |
mTemplate | Object | no declaration: type is approximate |
mTier | H7StructsAndEnumsNative.ECreatureTier | protected |
mTimeAtEffectStart | float | no declaration: type is approximate |
mTurnLeftSounds | Object | no declaration: type is approximate |
mTurnRightSounds | Object | no declaration: type is approximate |
mUndoDeathFX | bool | protected |
mUpgradeOfCoreCreature | H7Creature | protected |
mUseAmmo | bool | protected |
mVictorySound | Object | no declaration: type is approximate |
mVisuals | DynLoadObject | no declaration: type is approximate |
mWeapFX | array | no declaration: type is approximate |
mXp | int | protected |
Functions¶
| Name | Declaration |
|---|---|
CanMoraleInQuickCombat | native function bool CanMoraleInQuickCombat(array<H7BaseAbility> criteria) |
CreateCreature | function CreateCreature(H7Creature Template) |
CreatureHeading | function H7StructsAndEnumsNative.EDirection CreatureHeading() |
DoRagdoll | function DoRagdoll() |
EnableAdventureIdleBridge | function EnableAdventureIdleBridge(bool val) |
FadeBackEffectMaterialValues | function FadeBackEffectMaterialValues(float DeltaTime) |
GetAbilities | function array<H7CreatureAbility> GetAbilities() |
GetAmmo | function int GetAmmo() |
GetAnimControl | function H7CreatureAnimControl GetAnimControl() |
GetAttackRange | function H7StructsAndEnumsNative.EAttackRange GetAttackRange() |
GetBaseCreature | function H7Creature GetBaseCreature() |
GetBaseCreatureName | function string GetBaseCreatureName() |
GetBaseSize | function H7StructsAndEnumsNative.ECellSize GetBaseSize() |
GetBaseStatByID | native function float GetBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat) |
GetCreatureBaseUtility | function float GetCreatureBaseUtility() |
GetCreatureCategory | function H7StructsAndEnums.ECreatureCategory GetCreatureCategory() |
GetCreatureIsVisible | function bool GetCreatureIsVisible() |
GetCreatureLevel | function H7StructsAndEnumsNative.ECreatureLevel GetCreatureLevel() |
GetCreaturePower | function float GetCreaturePower() |
GetDefendAbility | function H7BaseAbility GetDefendAbility() |
GetDeploymentSlotID | function int GetDeploymentSlotID() |
GetDestiny | function int GetDestiny() |
GetExperiencePoints | function int GetExperiencePoints() |
GetFXScale | function float GetFXScale() |
GetHeight | function float GetHeight() |
GetHeightPos | function Vector GetHeightPos(float Offset) |
GetHitPointsBase | function int GetHitPointsBase() |
GetLeadership | event int GetLeadership() |
GetMeshCenter | native function Vector GetMeshCenter() |
GetMeshRadius | function float GetMeshRadius() |
GetModifiersByID | native function GetModifiersByID(out array<H7MeModifiesStat> outStats, H7StructsAndEnumsNative.EStat desiredStat, optional H7StructsAndEnumsNative.EOperationType exclusiveFirstOT = 255, optional H7StructsAndEnumsNative.EOperationType exclusiveSecondOT = 255, optional bool nextRound) |
GetMoralAbility | function H7BaseAbility GetMoralAbility() |
GetMovementType | function H7StructsAndEnumsNative.EMovementType GetMovementType() |
GetOverwriteIDString | function string GetOverwriteIDString() |
GetOwner | function H7CreatureStack GetOwner() |
GetQuickCombatSubstituteImpact | native function int GetQuickCombatSubstituteImpact(H7StructsAndEnumsNative.EQuickCombatSubstitute Substitute) |
GetResistanceModifierFor | native function float GetResistanceModifierFor(H7StructsAndEnumsNative.EAbilitySchool school, array<H7StructsAndEnumsNative.ESpellTag> tags, optional bool checkOnlyBuffs = false, optional bool forcedResistanceOnly = false) |
GetRetaliationAbility | function H7BaseAbility GetRetaliationAbility() |
GetRetaliationCharges | function int GetRetaliationCharges() |
GetRetaliationOverrideMelee | function H7BaseAbility GetRetaliationOverrideMelee() |
GetRetaliationOverrideRanged | function H7BaseAbility GetRetaliationOverrideRanged() |
GetSkeletalMesh | function SkeletalMeshComponent GetSkeletalMesh() |
GetSocketLocation | native function Vector GetSocketLocation(name SocketName) |
GetTier | function H7StructsAndEnumsNative.ECreatureTier GetTier() |
GetTierString | function string GetTierString() |
GetUpgradedCreature | function H7Creature GetUpgradedCreature() |
GetUpgradedName | function string GetUpgradedName() |
GetVisuals | event H7CreatureVisuals GetVisuals() |
GetWarUnitClass | function H7StructsAndEnumsNative.EWarUnitClass GetWarUnitClass() |
GetWeeklyGrowthRate | function int GetWeeklyGrowthRate() |
GetXSize | function int GetXSize() |
GetYSize | function int GetYSize() |
HasDeathMaterialFX | function bool HasDeathMaterialFX() |
HasMeleePenalty | function bool HasMeleePenalty() |
HasPendingMaterialFX | function bool HasPendingMaterialFX() |
HideMeshes | function HideMeshes() |
InitFX | function InitFX() |
IsBaseCreature | function bool IsBaseCreature() |
IsCritAnimPlayedForRanged | function bool IsCritAnimPlayedForRanged() |
IsFlankable | function bool IsFlankable() |
IsFullFlankable | function bool IsFullFlankable() |
isHovering | function bool isHovering() |
IsResurrectable | function bool IsResurrectable() |
IsUpgradeVersion | event bool IsUpgradeVersion() |
PlayAbility1EndSound | function PlayAbility1EndSound() |
PlayAbility1Sound | function PlayAbility1Sound() |
PlayAbility2Sound | function PlayAbility2Sound() |
PlayAdventureMapIdleSound | function PlayAdventureMapIdleSound(Actor creator) |
PlayAttackSound | function PlayAttackSound() |
PlayCastSound | function PlayCastSound() |
PlayCriticalAttackSound | function PlayCriticalAttackSound() |
PlayDeathEffects | function PlayDeathEffects(optional bool undo = false) |
PlayDeathMaterialEffects | function PlayDeathMaterialEffects() |
PlayDefendSound | function PlayDefendSound() |
PlayDieSound | function PlayDieSound() |
PlayFlyEndSound | function PlayFlyEndSound() |
PlayFlyStartSound | function PlayFlyStartSound() |
PlayGetHitSound | function PlayGetHitSound() |
PlayIdleSpecialSound | function PlayIdleSpecialSound() |
PlayMoveStartSound | function PlayMoveStartSound() |
PlayRandomFlySound | function PlayRandomFlySound() |
PlayRandomMoveSound | function PlayRandomMoveSound() |
PlayRangeAttackSound | function PlayRangeAttackSound() |
PlaySummonSound | function PlaySummonSound() |
PlayTurnLeftSound | function PlayTurnLeftSound() |
PlayTurnRightSound | function PlayTurnRightSound() |
PlayVictorySound | function PlayVictorySound() |
PostBeginPlay | simulated function PostBeginPlay() |
PostInitAnimTree | simulated event PostInitAnimTree(SkeletalMeshComponent SkelComp) |
ResumeMaterialEffects | function ResumeMaterialEffects() |
SetCreatureLevel | function SetCreatureLevel(H7StructsAndEnumsNative.ECreatureLevel lvl) |
SetCreatureMesh | native function SetCreatureMesh() |
SetDeploymentSlotID | function SetDeploymentSlotID(int val) |
SetEffectsMaterialValues | function SetEffectsMaterialValues(float DeltaTime) |
SetFadeInAnimDone | function SetFadeInAnimDone(bool V) |
SetIsFlankable | function SetIsFlankable(bool Value) |
SetIsFullFlankable | function SetIsFullFlankable(bool Value) |
SetIsHovering | function SetIsHovering(bool isHovering, optional bool evenIfBusy = false) |
SetLLamaMesh | native function SetLLamaMesh() |
SetMeshes | native function SetMeshes() |
SetRetaliationCharges | function SetRetaliationCharges(int newRetaliationCharges) |
SetTeamColor | function SetTeamColor(int TeamID) |
SetWeeklyGrowthRate | function SetWeeklyGrowthRate(int Value) |
ShowMeshes | function ShowMeshes() |
SkipDeathAnim | function SkipDeathAnim(bool doSkip) |
StartSetEffectMaterialValues | function StartSetEffectMaterialValues(H7FXObject Effect) |
StopRandomFlySound | function StopRandomFlySound() |
StopRandomMoveSound | function StopRandomMoveSound() |
Tick | function Tick(float DeltaTime) |
UpdateParticleTranslucency | simulated function UpdateParticleTranslucency(ParticleSystemComponent PSC) |
UsesAmmo | function 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