public override bool RunFromInventory() { // We'll assume that if the cat can stand in the location, it's valid to drop their prey? Target.UpdateVisualState(CatHuntingModelState.Carried); PetCarrySystem.PickUpFromSimInventory(Actor, Target, removeFromInventory: true); PetCarrySystem.PutDownOnFloor(Actor); Target.UpdateVisualState(CatHuntingModelState.InWorld); return(true); }
public override bool RunFromInventory() { mSimToPresent = (GetSelectedObject() as Sim); if (mSimToPresent == null) { return false; } Target.UpdateVisualState(CatHuntingModelState.Carried); if (!PetCarrySystem.PickUpFromSimInventory(Actor, Target, removeFromInventory: true)) { Target.UpdateVisualState(CatHuntingModelState.InInventory); return false; } return Run(); }