Toils Trouble

Started by searay330, July 19, 2018, 10:49:39 PM

Previous topic - Next topic

searay330

I have quite a simple question is there an established way to despawn the job pawn in the toil or directly after the pawn is done with the job. for example have a pawn gotoacell then wait and then despawn? it seems almost all of the base game toils cant be decompiled for obvious reasons.

Mehni

Sounds like you need a better decompiler.

Zhentar's ILspy does a very good job. dnSpy and dotpeek might need some settings tweaked to do a better job, but I've had decent results with at least one of them.

https://spdskatr.github.io/RWModdingResources/

https://github.com/Mehni/ExampleJob/wiki

Toils can do what you want, but for fancy or deferred operations you'll want them in a delegate. The examplejob wiki I wrote is pretty damn good, or so I've been told.

searay330

#2
i mispoke it was something in the menu options that can be decompiled not the toil itself, i cant seem to find a way to despawn a pawn either during or after their job with out hard crashing the game. in the mean time thank you for the info link ill read up and see if i cant see the forest for the trees

searay330

quick update im dumb the toil i made i used finish action not init action. whoops ¯\_(ツ)_/¯