Turret offset

Started by blitz1259, February 28, 2023, 04:01:36 AM

Previous topic - Next topic

blitz1259

TLDR: I'm looking for the code to offset a turret from the turret base.

I'm working on a CE compatible mod that has an object with a turret on it, but the object itself is not a turret base. I can spawn in the object with a functioning turret, but I need to shift the turret to where it's meant to be.

For simplicity, let's say the object is 3x3, so the turret would be placed in the middle cell. How do I shift that to one of the other 8 cells that the object occupies?

I've tried <offset> 0,0,0 </offset> (with different numbers obviously) at a few points in the code, but to no avail.

Please help!

Thanks :)