Returns the length in seconds for the animation associated with the supplied state for a piece, in seconds.
Example:
wait(ent GetZBarrierPieceAnimLengthForState(0, "opening", 0.9))
* = mandatory