Revision Difference
Entity:SetLayerDuration#527739
<function name="SetLayerDuration" parent="Entity" type="classfunc">
<description>
Sets the duration of given layer. This internally overrides the <page>Entity:SetLayerPlaybackRate</page>.
<note>This function only works on <page>BaseAnimatingOverlay</page> entites!</note>
<note>This function only works on <page>BaseAnimatingOverlay</page> entities.</note>
</description>
<realm>Shared</realm>
<args>
<arg name="layerID" type="number">The Layer ID</arg>
<arg name="duration" type="number">The new duration of the layer in seconds.</arg>
</args>
</function>