Can I get actual Thing from JobDriver's TargetIndex?

Started by Latta, August 21, 2015, 07:22:24 AM

Previous topic - Next topic

Latta

I'm looking for a way to make JobDriver gets/sets variable of targets.

I looked at Haplo's turret base. As far as I understood, the base itself checks if a gun is on top of it each tick. If found any, equip the gun. JobDriver only picks and hauls to the top of the turret, nothing changes within it.

I don't think it's a good case to me, as I'm making an equipment(which does not have a ticker), not a turret(which NEED a ticker). I would like to avoid adding lots of tickers to the game.

Haplo

You can add a following toil, where the job takes the delivered item and installed it on the target.
I think I'll look into my turret to check if that is easily changeable.. Good idea ;)

But back to your question:
It should be possible to read out, what the actual target is. Unfortunately I don't know it right now. I'll look into it when I'm at my computer. It should be inside the Jobdriver base or the TargetInfo base..

Latta

Okay, I'll dig deeper with mine too. Let's see...


Edit: There are TargetThingA and B within JobDriver base. How did I miss it. Uhhh...

Anyway thank you for direction Haplo!