Hello, robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) => { if (ObjectManager.Me.IsDeadMe && state.DisplayName == "Regeneration" && ObjectManager.Me.PositionCorpse.DistanceTo(ObjectManager.Me.Position) > 40) { cancelable.Cancel = true; // You code to follow path here } };