Skip to content

H7CreatureStackTeleporter

Class in MMH7Game · MMH7Game.H7CreatureStackTeleporter

Object › Actor › H7CreatureStackBaseMover › H7CreatureStackTeleporter

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

Properties

NameTypeNotes
mSecToAppearfloatprotected
mSecToVanishfloatprotected

Functions

NameDeclaration
GetCurrentTargetRotationfunction Rotator GetCurrentTargetRotation()
GetTargetRotationprotected function Rotator GetTargetRotation(int pathIndex)
Initializefunction Initialize(H7Unit Stack)
IsMovingfunction bool IsMoving()

States

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

StateFunctions
AppearBeginState, FieldArrive, UpdateMovement
IdleAttackStack, MoveStack, RotateStack
MovingFieldArrive, UpdateMovement
TurnToEnemyBeginState, FieldArrive, UpdateMovement
VanishBeginState, FieldArrive, UpdateMovement

Default values

mSecToVanish=0.1000000
mSecToAppear=0.1000000

Inherited

FromMembers
H7CreatureStackBaseMoverProperties: mCurrentCell, mCurveMaxStepsAdv, mCurveMaxStepsCombat, mDestinationCell, mLerpTargetLocation, mLerpTargetRotation, mLerpTimer, mLerpTimerRotation, mLerpToLocation, mLerpToRotation, mMoveTime, mMovingRepresentation, mMovingStack, MOVEMENT_DOTS_PER_CELL, mPassedUnits, mPath, mPlayerController, mSecPerField, mStartPos, mStartRot, mTarget
Functions: AddEnemyPositionToPath, AttackStack, ClearPath, DotIndexToCellIndex, GetCellLocation, GetCellOfTarget, GetOptimalTargetRotation, GetSecondsPerField, GetSmoothAdventurePath, GetSmoothCombatPath, GetSmoothPath, GetTargetRotation, Initialize, IsMoving, LerpToLocation, LerpToRotation, MoveStack, OnAttackStackFinishedFunc, OpenGateOnTargetPos, RestorePassedUnits, RotateStack, SetLerpToLocation, SetLerpToRotation, UpdateMovement, UpdateRotation
Actor156 properties, 262 functions
Object13 properties, 308 functions