Joint.getLength
Returns the current length of a piston. The length is measured in blocks.
Kind: Function
Environments: Game
Game
joint:getLength( )
Parameters:
| Name | Type | Description |
|---|---|---|
piston |
Joint | The piston. |
Returns:
| Type | Description |
|---|---|
| number | The piston's current length in blocks. |