Garry's Mod Wiki

Garry's Mod Wiki

  Entity:SetLayerDuration( number layerID, number duration )

Description

Sets the duration of given layer. This internally overrides the Entity:SetLayerPlaybackRate.

This function only works on BaseAnimatingOverlay entities.
This stops layer playback if layer sequence conists of 1 frame. Use Entity:SetLayerPlaybackRate(layerID,1/duration) instead.

Arguments

1 number layerID
The Layer ID
2 number duration
The new duration of the layer in seconds.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...