Garry's Mod Wiki

Revision Difference

Entity:SetLayerDuration#527412

<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> </description> <realm>Server</realm>⤶ <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>