Skip to content

H7CombatMapTower

Class in MMH7Game · MMH7Game.H7CombatMapTower · native, perobjectconfig

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

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

Properties

NameTypeNotes
mAimingMeshStaticMeshComponentprotected
mAimingTimefloatprotected
mAnimNodeAnimNodePlayCustomAnimprotected
mCurrentMeshMeshComponentprotected
mIsAlwaysPilarboolprotectedwrite
mObstacleArchetypeH7CombatObstacleFracturedObjectprotectedwrite
mShootingEventTimefloatprotected
mShootingSoundAkEventprotected
mShouldAimingMeshRotateboolprotected
mSkeletalAimingMeshSkeletalMeshComponentprotected
mStartRotRotatorprotected
mTargetLocationVectorprotected
mTowerUnitH7TowerUnitprotected
mTowerUnitArchetypeH7TowerUnitprotected
mUseStaticAimingMeshboolprotected

Functions

NameDeclaration
FaceTargetsimulated function FaceTarget(H7IEffectTargetable Target)
FinishShootAnimfunction FinishShootAnim()
GetAnimTimeLeftsimulated function float GetAnimTimeLeft()
GetLevelsimulated function H7StructsAndEnumsNative.EObstacleLevel GetLevel()
GetProjectileImpactPossimulated function Vector GetProjectileImpactPos()
GetTowerUnitfunction H7TowerUnit GetTowerUnit()
GetTowerUnitArchetypefunction H7TowerUnit GetTowerUnitArchetype()
Initsimulated function Init()
IsIdlingfunction bool IsIdling()
ModifyHitpointssimulated function ModifyHitpoints(int modval)
OnFaceTargetFinishedFuncsimulated delegate OnFaceTargetFinishedFunc()
OnShootFuncsimulated delegate OnShootFunc()
PlaceObstaclesimulated function H7CombatObstacleObject PlaceObstacle(H7SiegeTownData siegeTownData, Vector SpawnLocation, optional Actor NewOwner)
PlayShootAnimsimulated function PlayShootAnim()
StartShootfunction StartShoot()
SwitchToIdlesimulated function SwitchToIdle()

States

State code replaces the class's functions while the object is in that state. Hook a state's version as MMH7Game.H7CombatMapTower.<State>.<Function>.

StateFunctions
AimingBeginState, GetOptimalTargetRotation, IsIdling, Tick
ShootingBeginState, IsIdling
WaitingBeginState, IsIdling

Default values

mUseStaticAimingMesh=true

Inherited

FromMembers
H7CombatObstacleFracturedObjectProperties: mFallingPiecesFX, mFallingPiecesFXArchetype, mFracturedStaticMeshArchetype, mImpulseRadiusDestroyed, mImpulseRadiusNormal, mImpulseStrength, mLastImpactPos, mSpawnedFracturedMeshActor
Functions: ApplyDamage, GetHeight, GetHeightPos, GetProjectileImpactPos, Init, RemoveTopPieces, SetVisibility, ToggleVisibility
H7CombatObstacleObjectProperties: mAbilities, mAbilityManager, mApplyCover, mBaseSizeX, mBaseSizeY, mBuffManager, mCorners, mCurrentHitpoints, mCurrentPath, mCurrentTargetCell, mDestroySound, mDestructible, mEffectManager, mEventManager, mGridPos, mHitpoints, mHitSound, Mid, mIdleSound, mIsHovering, mIsSiegeMachineTarget, mKillActorWhenDestroyed, mMaximumDamage, mMinimumDamage, mMoveSound, mMoveTimer, mObstacleName, mObstacleNameInst, mOnlySpawnIfMoats, mPlayer, mPreviewBox, mRemoveWhenDestroyed, mShowPreviewBox, mType
Functions: ApplyDamage, DataChanged, DehighlightObstacle, Destroyed, EndMoving, GetAbilityManager, GetActionID, GetAttack, GetBuffManager, GetCells, GetCombatArmy, GetCorners, GetEffectManager, GetEntityType, GetEventManager, GetFloatingTextLocation, GetGridPos, GetGridPosition, GetHeight, GetHeightPos, GetHitPoints, GetID, GetLevel, GetLocation, GetLuckDestiny, GetMagic, GetMaxHitpoints, GetMaximumDamage, GetMeshCenter, GetMeshComponent, GetMinimumDamage, GetMoveSound, GetName, GetObstacleBaseSizeX, GetObstacleBaseSizeY, GetObstacleType, GetOriginal, GetPlayer, GetPreparedAbility, GetProjectileImpactPos, GetResistanceModifierFor, GetSchool, GetStackSize, GUIAddListener, GUIWriteInto, HighlightObstacle, Init, IsApplyCover, IsDefaultAttackActive, IsDestructible, isHovering, IsMoving, IsSiegeMachineTarget, KillObstacle, LerpMove, LocalizeName, ModifyHitpoints, PlaceObstacle, PostBeginPlay, PrepareAbility, SetAbilities, SetDestructible, SetGridPos, SetIsHovering, SetMaximumDamage, SetMinimumDamage, SetPath, SetPlayer, Tick, TriggerEvents, UsePreparedAbility
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