Move Entity
Move Entity¶
Makes an actor or entity follow a defined movement pattern.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Movement | The movement pattern to apply to the target actor. | MovementCollection |
| Target | The actor or entity to apply the movement to. | Actor Reference |
| Wait to Complete | Whether the script waits for the movement to finish before continuing to the next command. | Toggle |
Examples¶
Move Entity 0 with a Movement Sequence¶
This moves entity 0 along a predefined movement path and waits for the movement to complete before continuing.
{"Data":{"IsRequiringMovementToComplete":1,"MovementCollection":{"Elements":[{"$":"StepMovementElement","Direction":1,"IsAscentStep":0,"IsAwayFromHeroStep":0,"IsBackwardStep":0,"IsDescentStep":0,"IsDirectionStep":1,"IsForwardStep":0,"IsRandomAscentDescent":0,"IsRandomStep":0,"IsTowardHeroStep":0,"IsVerticalMovementOnly":0,"StepFactor":1,"Summary":null,"Metadata":null},{"$":"StepMovementElement","Direction":3,"IsAscentStep":0,"IsAwayFromHeroStep":0,"IsBackwardStep":0,"IsDescentStep":0,"IsDirectionStep":1,"IsForwardStep":0,"IsRandomAscentDescent":0,"IsRandomStep":0,"IsTowardHeroStep":0,"IsVerticalMovementOnly":0,"StepFactor":1,"Summary":null,"Metadata":null},{"$":"StepMovementElement","Direction":5,"IsAscentStep":0,"IsAwayFromHeroStep":0,"IsBackwardStep":0,"IsDescentStep":0,"IsDirectionStep":1,"IsForwardStep":0,"IsRandomAscentDescent":0,"IsRandomStep":0,"IsTowardHeroStep":0,"IsVerticalMovementOnly":0,"StepFactor":1,"Summary":null,"Metadata":null}],"IgnoreInvalidMovement":0,"IsRecycling":0,"Metadata":null},"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsEntity":1,"IsIdentifiedByUniqueID":0,"IsPartyMember":0,"IsSelf":0,"Metadata":null},"Blocking":0,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Entity.EntityMovementCommand"}