Animation Layers (BaseAnimatingOverlay)
Entities based on BaseAnimatingOverlay are capable of layering animations.
NextBots, most NPCs and Players are BaseAnimatingOverlay entities.
Only Scripted Entities of the anim type are BaseAnimatingOverlay.
Players follow a different layer implementation. Layers for players aren't automatically networked. The layer functions special to Player entity must be used rather than Entity functions to add the layer. The call must be networked; for SERVER to update the hitboxes properly and for CLIENT for the animation to be seen. For other entity types, added layers automatically get networked.
The following functions can only be used on BaseAnimatingOverlay entities:
Layer creation functions
Layer functions special to Player
Layer manipulation functions
Other functions
Example
Example usage of layers on a anim type SENT.
Garry's Mod
Rust
Steamworks
Wiki Help