Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Test Subject
Original Poster
#1 Old 15th Jun 2014 at 8:02 PM
Default Route + Walk
Hello. I have this code. It works correctly
This causes the Sim goes to the mailbox.

Code:
public static void RouteToDeliverPaper(Sim sim){
			Route route = null;
			foreach (Mailbox CaixaDeCorreios in Sims3.Gameplay.Queries.GetObjects<Mailbox>()) {Correios = CaixaDeCorreios;break;}
			Correios.LotCurrent.RouteToMailbox (sim, 1f, 2f, ref route, true);
			Route route2 = sim.CreateRoute();
			Correios.LotCurrent.PlanToLot(route2);
			sim.DoRoute(route2);
}

protected override bool Run(){
			RouteToDeliverPaper (base.Actor);
			return true;
		}


The problem is that the Sims always use vehicles in faraway destinations. I want to make the Sims walk to your destination. I looked at the interaction GoHere, couldn't find anything.

Can you help me?
Advertisement
Lab Assistant
#2 Old 17th Jun 2014 at 5:08 PM
I don't know if that will be useful for you : I looked "Sims3.Gameplay.Actors.Sim+GoForWalkWithDog"

There are this :
Route r = base.Target.CreateRoute();
r.SetOption(Route.RouteOption.IgnoreSidewalkAndLotRestrictions, false);
r.SetOption(Route.RouteOption.EnablePlanningAsCar, false);
r.SetOption(Route.RouteOption.EnableSubwayPlanning, false);
r.SetOption2(Route.RouteOption2.EnableHoverTrainPlanning, false);
r.SetOption(Route.RouteOption.OffsetDestinationForLongAnimals, false);
r.SetOption(Route.RouteOption.EnableWaterPlanning, false);
this.TargetLot.PlanRouteIntoLot(r, true, base.Target);


I think that using “r.SetOption" correctly, we can force the sims walk.
But of course, it is only one supposition.
Back to top