moveTo_2 beta
Function of @v12-engine/engine
ts
export declare function moveTo(world: World, entity: Entity, goal: Vec2, options?: MoveOptions): void;Sends a unit walking to a point, the way around what is in the way. How it goes is in entity.movement.status: moving on the way, arrived once there, failed when there is no way there or it got stuck. Held up by others it tries again a few times before it gives up (MovementState.tries). An order calls this once and then watches the status; calling it again with the same goal starts the walk over