Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

[SOLVED] How to get Piston Orientation?

$
0
0
Hello,
i have trouble to get the right piston orientation to determine if it is a vertical or horizontal extracting piston.

First i thought i can use
Code:
piston.Orientation.Up
to get the direction, but then i realized that this depends on the grid.
And my construction depends on rotor's and pistons so i have many subgrids.
I need some help to get the orientation of the pistons relative to the main grid or a block.

Simple U shaped crane like constrution:
Code:
[c] [ -> ] [c]...
[SOLVED] How to get Piston Orientation?

Viewing all articles
Browse latest Browse all 645

Trending Articles