How to enqueue multiple jobs?

Started by Friedmutant, February 07, 2015, 09:36:50 PM

Previous topic - Next topic

Friedmutant

So far, I'm familiar with this level of job control:

pawn.jobs.StartJob (new Job (JobDefOf.Wear, (Apparel)some_clothing));

But that prints warnings in the debug console because it interrupts the pawn's current job. 
Using this first:
pawn.jobs.StopAll()
gets around the problem, but it doesn't seem right and doesn't work when I want instruct the pawn to do one thing and then another right after.

Is there some sort of job queue available that I don't know about yet?  If so, how do I append jobs to it?

Thanks!

Haplo

The current system isn't built to really enque jobs. It is build to do a job and then do the next job according to the priority system. The only thing you can do is do all the steps inside the job itself by usage of the toils.

Friedmutant


Okay, thanks.  Can someone suggest a mod with source with which I can study the toil system?

mrofa

Haplos  Miscellaneous :D
He did make his own toils there
All i do is clutter all around.