BaseAnimatingOverlay
From Garry's Mod
(Difference between revisions)
Robotboy655 (Talk | contribs) |
Robotboy655 (Talk | contribs) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Type|NextBot}} and | + | {{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. |
+ | |||
+ | {{Note|Playing gestures/creating new layers on {{Type|NextBot}}s may not work correctly unless done in the {{HookFunction|NEXTBOT|BehaveUpdate}} hook.}} | ||
+ | |||
+ | The following functions can only be used on '''BaseAnimatingOverlay''' entities: | ||
* Layer creation functions | * Layer creation functions | ||
Line 7: | Line 11: | ||
** {{ClassFunction|Entity|AddGestureSequence}} | ** {{ClassFunction|Entity|AddGestureSequence}} | ||
** {{ClassFunction|Entity|AddLayeredSequence}} | ** {{ClassFunction|Entity|AddLayeredSequence}} | ||
+ | |||
* Layer manipulation functions | * Layer manipulation functions | ||
** {{ClassFunction|Entity|IsValidLayer}} | ** {{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 | * Other functions | ||
** {{ClassFunction|Entity|IsPlayingGesture}} | ** {{ClassFunction|Entity|IsPlayingGesture}} | ||
** {{ClassFunction|Entity|RestartGesture}} | ** {{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:
- Layer creation functions
- Layer manipulation functions
- Other functions