Skip to content

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.

move_actor(entity(0), [up, right, down], wait_for_completion);
{"Data":{"IsRequiringMovementToComplete":true,"MovementCollection":{"Elements":[{"$":"DirectionalMovementElement","Direction":0,"Metadata":null},{"$":"DirectionalMovementElement","Direction":1,"Metadata":null},{"$":"DirectionalMovementElement","Direction":2,"Metadata":null}],"Metadata":null},"Target":{"ReferenceType":0,"Index":0,"IsSelf":false,"IsEntity":true,"IsPartyMember":false,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Entity.EntityMovementCommand"}