Garry's Mod Wiki

Revision Difference

BaseAnimatingOverlay#520112

<cat>Dev</cat>⤶ <page>NextBot</page>s and <page>Player</page>s are BaseAnimatingOverlay entities. Only <page>Scripted Entities</page> of the "anim" type are BaseAnimatingOverlay. <note>Playing gestures/creating new layers on <page>NextBot</page>s may not work correctly unless done in the <page>NEXTBOT:BehaveUpdate</page> hook.</note> The following functions can only be used on **BaseAnimatingOverlay** entities: * Layer creation functions * * <page>Entity:AddGesture</page> * * <page>Entity:AddGestureSequence</page> * * <page>Entity:AddLayeredSequence</page> * <page>Entity:AddGesture</page> * <page>Entity:AddGestureSequence</page> * <page>Entity:AddLayeredSequence</page> * Layer manipulation functions * * <page>Entity:IsValidLayer</page> * * <page>Entity:SetLayerDuration</page> * * <page>Entity:GetLayerDuration</page> * * <page>Entity:SetLayerCycle</page> * * <page>Entity:GetLayerCycle</page> * * <page>Entity:SetLayerPlaybackRate</page> * * <page>Entity:SetLayerWeight</page> * * <page>Entity:GetLayerWeight</page> * * <page>Entity:SetLayerBlendIn</page> * * <page>Entity:SetLayerBlendOut</page> * * <page>Entity:SetLayerLooping</page> * <page>Entity:IsValidLayer</page> * <page>Entity:SetLayerDuration</page> * <page>Entity:GetLayerDuration</page> * <page>Entity:SetLayerCycle</page> * <page>Entity:GetLayerCycle</page> * <page>Entity:SetLayerPlaybackRate</page> * <page>Entity:SetLayerWeight</page> * <page>Entity:GetLayerWeight</page> * <page>Entity:SetLayerBlendIn</page> * <page>Entity:SetLayerBlendOut</page> * <page>Entity:SetLayerLooping</page> * Other functions * * <page>Entity:IsPlayingGesture</page> * * <page>Entity:RestartGesture</page> * * <page>Entity:RemoveGesture</page> * * <page>Entity:RemoveAllGestures</page> * <page>Entity:IsPlayingGesture</page> * <page>Entity:RestartGesture</page> * <page>Entity:RemoveGesture</page> * <page>Entity:RemoveAllGestures</page>