BaseAnimatingOverlay

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Type|NextBot}} and Scripted entities of the "anim" type are BaseAnimatingOverlay entities.
+
{{Type|NextBot}}s and {{Type|Player}}s are BaseAnimatingOverlay entities.
  
The following functions can only be used on BaseAnimatingOverlay entities:
+
Only [[Scripted Entities]] of the "anim" type are BaseAnimatingOverlay.
* {{ClassFunction|Entity|AddGesture}}
+
 
* {{ClassFunction|Entity|AddGestureSequence}}
+
{{Note|Playing gestures/creating new layers on {{Type|NextBot}}s may not work correctly unless done in the {{HookFunction|NEXTBOT|BehaveUpdate}} hook.}}
* {{ClassFunction|Entity|AddLayeredSequence}}
+
 
* {{ClassFunction|Entity|RestartGesture}}
+
The following functions can only be used on '''BaseAnimatingOverlay''' entities:
* {{ClassFunction|Entity|IsPlayingGesture}}
+
 
* {{ClassFunction|Entity|IsValidLayer}}
+
* Layer creation functions
 +
** {{ClassFunction|Entity|AddGesture}}
 +
** {{ClassFunction|Entity|AddGestureSequence}}
 +
** {{ClassFunction|Entity|AddLayeredSequence}}
 +
 
 +
* Layer manipulation functions
 +
** {{ClassFunction|Entity|IsValidLayer}}
 +
** {{ClassFunction|Entity|SetLayerDuration}}
 +
** {{ClassFunction|Entity|GetLayerDuration}}
 +
** {{ClassFunction|Entity|SetLayerCycle}}
 +
** {{ClassFunction|Entity|GetLayerCycle}}
 +
** {{ClassFunction|Entity|SetLayerPlaybackRate}}
 +
** {{ClassFunction|Entity|SetLayerWeight}}
 +
** {{ClassFunction|Entity|GetLayerWeight}}
 +
** {{ClassFunction|Entity|SetLayerBlendIn}}
 +
** {{ClassFunction|Entity|SetLayerBlendOut}}
 +
** {{ClassFunction|Entity|SetLayerLooping}}
 +
 
 +
* Other functions
 +
** {{ClassFunction|Entity|IsPlayingGesture}}
 +
** {{ClassFunction|Entity|RestartGesture}}
 +
** {{ClassFunction|Entity|RemoveGesture}}
 +
** {{ClassFunction|Entity|RemoveAllGestures}}
 +
 
 +
[[Category:Lua_Reference]]

Latest revision as of 16:00, 26 February 2018

NextBots and Players are BaseAnimatingOverlay entities.

Only Scripted Entities of the "anim" type are BaseAnimatingOverlay.

NOTE

Playing gestures/creating new layers on NextBots may not work correctly unless done in the NEXTBOT:BehaveUpdate hook.

The following functions can only be used on BaseAnimatingOverlay entities:

Personal tools
Navigation