Returns the state of the piece indexed in the zbarrier ent. States are open, opening, closed and closing.
Example:
pieceState = ent GetZBarrierPieceState(1)
* = mandatory