Skip to content

H7CreatureStackBaseMover

Class in MMH7Game · MMH7Game.H7CreatureStackBaseMover · native

Object › Actor › H7CreatureStackBaseMover

Subclasses: H7CreatureStackFlyer, H7CreatureStackJumper, H7CreatureStackMover, H7CreatureStackTeleporter

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

Structs

H7PathPosition

FieldType
PositionVector
cellH7BaseCell
Defaults
Position=(X=0.0000000,Y=0.0000000,Z=0.0000000)
cell=none

Properties

NameTypeNotes
mCurrentCellH7BaseCellprotected
mCurveMaxStepsAdvintprotected
mCurveMaxStepsCombatintprotected
mDestinationCellH7BaseCellprotected
mLerpTargetLocationVectorprotected
mLerpTargetRotationRotatorprotected
mLerpTimerfloatprotected
mLerpTimerRotationfloatprotected
mLerpToLocationboolprotected
mLerpToRotationboolprotected
mMoveTimefloatprotected
mMovingRepresentationActorprotected
mMovingStackH7Unitprotected
MOVEMENT_DOTS_PER_CELLint
mPassedUnitsarray<H7Unit>protected
mPatharray<H7PathPosition>protected
mPlayerControllerH7PlayerControllerprotected
mSecPerFieldfloatprotected
mStartPosVectorprotected
mStartRotRotatorprotected
mTargetH7IEffectTargetableprotected

Functions

NameDeclaration
AddEnemyPositionToPathprotected function AddEnemyPositionToPath()
AttackStackfunction AttackStack(H7IEffectTargetable Target)
ClearPathfunction ClearPath()
DotIndexToCellIndexprotected function int DotIndexToCellIndex(int dotIndex, int totalDots, int totalCells)
GetCellLocationprotected function Vector GetCellLocation(H7BaseCell cell)
GetCellOfTargetprotected function H7BaseCell GetCellOfTarget(H7IEffectTargetable Target)
GetOptimalTargetRotationprotected function Rotator GetOptimalTargetRotation(Vector From, Vector to)
GetSecondsPerFieldfunction float GetSecondsPerField()
GetSmoothAdventurePathprotected function array<H7PathPosition> GetSmoothAdventurePath(array<H7BaseCell> Path)
GetSmoothCombatPathprotected function array<H7PathPosition> GetSmoothCombatPath(array<H7BaseCell> Path)
GetSmoothPathprotected function array<H7PathPosition> GetSmoothPath(array<H7BaseCell> Path)
GetTargetRotationprotected function Rotator GetTargetRotation(int pathIndex)
Initializefunction Initialize(H7Unit Stack)
IsMovingfunction bool IsMoving()
LerpToLocationevent LerpToLocation(float DeltaTime)
LerpToRotationevent LerpToRotation(float DeltaTime)
MoveStackfunction MoveStack(array<H7BaseCell> Path, optional H7IEffectTargetable targetUnit)
OnAttackStackFinishedFuncdelegate OnAttackStackFinishedFunc()
OpenGateOnTargetPosfunction OpenGateOnTargetPos()
RestorePassedUnitsfunction RestorePassedUnits()
RotateStackfunction RotateStack(Rotator targetRot)
SetLerpToLocationfunction SetLerpToLocation(Vector TargetLocation)
SetLerpToRotationfunction SetLerpToRotation(Rotator TargetRotation)
UpdateMovementevent UpdateMovement(float DeltaTime)
UpdateRotationfunction UpdateRotation()

Default values

MOVEMENT_DOTS_PER_CELL=4
mCurveMaxStepsAdv=10
mCurveMaxStepsCombat=8
CollisionType=ECollisionType.COLLIDE_CustomDefault

Inherited

FromMembers
Actor156 properties, 262 functions
Object13 properties, 308 functions