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
Defaults
Position=(X=0.0000000,Y=0.0000000,Z=0.0000000)
cell=none
Properties
| Name | Type | Notes |
mCurrentCell | H7BaseCell | protected |
mCurveMaxStepsAdv | int | protected |
mCurveMaxStepsCombat | int | protected |
mDestinationCell | H7BaseCell | protected |
mLerpTargetLocation | Vector | protected |
mLerpTargetRotation | Rotator | protected |
mLerpTimer | float | protected |
mLerpTimerRotation | float | protected |
mLerpToLocation | bool | protected |
mLerpToRotation | bool | protected |
mMoveTime | float | protected |
mMovingRepresentation | Actor | protected |
mMovingStack | H7Unit | protected |
MOVEMENT_DOTS_PER_CELL | int | |
mPassedUnits | array<H7Unit> | protected |
mPath | array<H7PathPosition> | protected |
mPlayerController | H7PlayerController | protected |
mSecPerField | float | protected |
mStartPos | Vector | protected |
mStartRot | Rotator | protected |
mTarget | H7IEffectTargetable | protected |
Functions
| Name | Declaration |
AddEnemyPositionToPath | protected function AddEnemyPositionToPath() |
AttackStack | function AttackStack(H7IEffectTargetable Target) |
ClearPath | function ClearPath() |
DotIndexToCellIndex | protected function int DotIndexToCellIndex(int dotIndex, int totalDots, int totalCells) |
GetCellLocation | protected function Vector GetCellLocation(H7BaseCell cell) |
GetCellOfTarget | protected function H7BaseCell GetCellOfTarget(H7IEffectTargetable Target) |
GetOptimalTargetRotation | protected function Rotator GetOptimalTargetRotation(Vector From, Vector to) |
GetSecondsPerField | function float GetSecondsPerField() |
GetSmoothAdventurePath | protected function array<H7PathPosition> GetSmoothAdventurePath(array<H7BaseCell> Path) |
GetSmoothCombatPath | protected function array<H7PathPosition> GetSmoothCombatPath(array<H7BaseCell> Path) |
GetSmoothPath | protected function array<H7PathPosition> GetSmoothPath(array<H7BaseCell> Path) |
GetTargetRotation | protected function Rotator GetTargetRotation(int pathIndex) |
Initialize | function Initialize(H7Unit Stack) |
IsMoving | function bool IsMoving() |
LerpToLocation | event LerpToLocation(float DeltaTime) |
LerpToRotation | event LerpToRotation(float DeltaTime) |
MoveStack | function MoveStack(array<H7BaseCell> Path, optional H7IEffectTargetable targetUnit) |
OnAttackStackFinishedFunc | delegate OnAttackStackFinishedFunc() |
OpenGateOnTargetPos | function OpenGateOnTargetPos() |
RestorePassedUnits | function RestorePassedUnits() |
RotateStack | function RotateStack(Rotator targetRot) |
SetLerpToLocation | function SetLerpToLocation(Vector TargetLocation) |
SetLerpToRotation | function SetLerpToRotation(Rotator TargetRotation) |
UpdateMovement | event UpdateMovement(float DeltaTime) |
UpdateRotation | function UpdateRotation() |
Default values
MOVEMENT_DOTS_PER_CELL=4
mCurveMaxStepsAdv=10
mCurveMaxStepsCombat=8
CollisionType=ECollisionType.COLLIDE_CustomDefault
Inherited
| From | Members |
| Actor | 156 properties, 262 functions |
| Object | 13 properties, 308 functions |