Skip to content

H7CombatObstacleObject

Class in MMH7Game · MMH7Game.H7CombatObstacleObject · native, perobjectconfig

Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7EditorMapObject › H7CombatObstacleObject

Implements: H7IGUIListenable, H7IEffectTargetable, H7ICaster, H7IAliasable

Subclasses: H7CombatMapMoat, H7CombatMapTrap, H7CombatObstacleFracturedObject

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

Properties

NameTypeNotes
mAbilitiesarray<H7BaseAbility>protected
mAbilityManagerH7AbilityManagerprotected
mApplyCoverboolprotected
mBaseSizeXintprotected
mBaseSizeYintprotected
mBuffManagerH7BuffManagerprotected
mCornersarray<Vector>protected
mCurrentHitpointsintprotected
mCurrentPatharray<H7BaseCell>protected
mCurrentTargetCellH7BaseCellprotected
mDestroySoundAkEventprotected
mDestructibleboolprotected
mEffectManagerH7EffectManagerprotected
mEventManagerH7EventManagerprotected
mGridPosIntPointprotected
mHitpointsintprotected
mHitSoundAkEventprotected
Midintprotected
mIdleSoundAkEventprotected
mIsHoveringboolprotected
mIsSiegeMachineTargetboolprotected
mKillActorWhenDestroyedboolprotected
mMaximumDamagefloatprotected
mMinimumDamagefloatprotected
mMoveSoundAkEventprotected
mMoveTimerfloatprotected
mObstacleNamestringconst, localized, protected
mObstacleNameInststringtransient, protected
mOnlySpawnIfMoatsbool
mPlayerH7Playerprotected
mPreviewBoxDrawBoxComponentprotected
mRemoveWhenDestroyedboolprotected
mShowPreviewBoxboolprotected
mTypeH7StructsAndEnumsNative.EObstacleTypeprotected

Functions

NameDeclaration
ApplyDamagesimulated function ApplyDamage(H7CombatResult Result, int resultIdx, bool isForecast, optional bool isRetaliation = false, optional bool raiseEvent = true)
DataChangedsimulated function DataChanged(optional string caller)
DehighlightObstaclesimulated function DehighlightObstacle()
Destroyedsimulated event Destroyed()
EndMovingfunction EndMoving()
GetAbilityManagernative function H7AbilityManager GetAbilityManager()
GetActionIDfunction H7StructsAndEnumsNative.ECommandTag GetActionID(H7BaseAbility Ability)
GetAttackevent int GetAttack()
GetBuffManagernative function H7BuffManager GetBuffManager()
GetCellssimulated event array<H7CombatMapCell> GetCells()
GetCombatArmynative function H7CombatArmy GetCombatArmy()
GetCornersnative simulated function array<Vector> GetCorners()
GetEffectManagerfunction H7EffectManager GetEffectManager()
GetEntityTypenative function H7StructsAndEnumsNative.EUnitType GetEntityType()
GetEventManagernative function H7EventManager GetEventManager()
GetFloatingTextLocationfunction Vector GetFloatingTextLocation()
GetGridPossimulated function IntPoint GetGridPos()
GetGridPositionnative function IntPoint GetGridPosition()
GetHeightsimulated function float GetHeight()
GetHeightPossimulated function Vector GetHeightPos(float Offset)
GetHitPointssimulated function int GetHitPoints()
GetIDnative simulated function int GetID()
GetLevelsimulated function H7StructsAndEnumsNative.EObstacleLevel GetLevel()
GetLocationnative function Vector GetLocation()
GetLuckDestinynative function int GetLuckDestiny()
GetMagicevent int GetMagic()
GetMaxHitpointssimulated function int GetMaxHitpoints()
GetMaximumDamageevent float GetMaximumDamage()
GetMeshCenternative simulated function Vector GetMeshCenter()
GetMeshComponentnative simulated function StaticMeshComponent GetMeshComponent()
GetMinimumDamageevent float GetMinimumDamage()
GetMoveSoundfunction AkEvent GetMoveSound()
GetNamefunction string GetName()
GetObstacleBaseSizeXnative simulated function int GetObstacleBaseSizeX()
GetObstacleBaseSizeYnative simulated function int GetObstacleBaseSizeY()
GetObstacleTypesimulated function H7StructsAndEnumsNative.EObstacleType GetObstacleType()
GetOriginalnative function H7ICaster GetOriginal()
GetPlayernative function H7Player GetPlayer()
GetPreparedAbilityfunction H7BaseAbility GetPreparedAbility()
GetProjectileImpactPosfunction Vector GetProjectileImpactPos()
GetResistanceModifierFornative function float GetResistanceModifierFor(H7StructsAndEnumsNative.EAbilitySchool school, array<H7StructsAndEnumsNative.ESpellTag> tags, optional bool checkOnlyBuffs = false, optional bool forcedResistanceOnly = false)
GetSchoolevent H7StructsAndEnumsNative.EAbilitySchool GetSchool()
GetStackSizefunction int GetStackSize()
GUIAddListenersimulated function GUIAddListener(GFxObject Data, optional H7StructsAndEnums.H7ListenFocus Focus)
GUIWriteIntosimulated function GUIWriteInto(GFxObject Data, optional H7StructsAndEnums.H7ListenFocus Focus, optional H7GFxUIContainer flashFactory)
HighlightObstaclesimulated function HighlightObstacle()
Initsimulated function Init()
IsApplyCoverevent bool IsApplyCover()
IsDefaultAttackActivenative function bool IsDefaultAttackActive()
IsDestructiblesimulated function bool IsDestructible()
isHoveringsimulated function bool isHovering()
IsMovingfunction bool IsMoving()
IsSiegeMachineTargetsimulated function bool IsSiegeMachineTarget()
KillObstaclefunction KillObstacle()
LerpMovefunction LerpMove(float DeltaTime)
LocalizeNamefunction LocalizeName()
ModifyHitpointssimulated function ModifyHitpoints(int modval)
PlaceObstaclesimulated function H7CombatObstacleObject PlaceObstacle(H7SiegeTownData siegeTownData, Vector SpawnLocation, optional Actor NewOwner)
PostBeginPlaysimulated event PostBeginPlay()
PrepareAbilityfunction PrepareAbility(H7BaseAbility Ability)
SetAbilitiesfunction SetAbilities(array<H7BaseAbility> Abilities)
SetDestructiblefunction SetDestructible(bool val)
SetGridPossimulated function SetGridPos(IntPoint gp)
SetIsHoveringsimulated function SetIsHovering(bool isHovering)
SetMaximumDamagefunction SetMaximumDamage(float val)
SetMinimumDamagefunction SetMinimumDamage(float val)
SetPathfunction SetPath(array<H7BaseCell> Path)
SetPlayerfunction SetPlayer(H7Player dasPlayer)
Tickevent Tick(float DeltaTime)
TriggerEventssimulated function TriggerEvents(H7StructsAndEnumsNative.ETrigger triggerEvent, bool forecast, optional H7EventContainerStruct container)
UsePreparedAbilitysimulated function UsePreparedAbility(H7IEffectTargetable Target)

Default values

mShowPreviewBox=true
mRemoveWhenDestroyed=true

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