Entity.SetAnimation
From GMod Wiki
Function | |
Syntax | Entity:SetAnimation( Enum Enum ) |
Description: | |
Sends an animation event to a player. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetAnimation]Entity.SetAnimation [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
Additional Notes
- Though its name might suggest it, this function does NOT play a specific animation on an entity, it is used for sending animation events such as firing and reloading to a player's entity.
- For playing animations on any entity, see Entity.SetSequence and Entity.ResetSequence.
- This function is deprecated. Use the following functions instead.