Black Ops III

GetZBarrierPieceAnimLengthForState

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))

Parameters

ParameterSummary
*indexThe index of the piece we care about.
*stateName of state of interest - choices are 'open', 'closed', 'opening', 'closing'.
[scalar]Scalar applied to animation length.

* = mandatory