Entity:SetLayerDuration
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.
Garry's Mod
Rust
Steamworks
Wiki Help