Entity.RestartGesture
From GMod Wiki
Function | |
Syntax | Entity:RestartGesture( Integer sequence ) |
Description: | |
Like Entity:ResetSequence, sets the entity's model gesture. If the gesture is already playing, it will be reset and played from the beginning. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.RestartGesture]Entity.RestartGesture [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Set the owner to play a "halt" gesture. (use this on a player, only players have this animation) |
---|---|
Used on | |
Code | self.Owner:RestartGesture( ACT_SIGNAL_HALT ) |
Output | N/A |
Additional Notes
- Make sure, if this is called in a SENT, that the ThinkFunction uses a "higher tickrate". Otherwise, the animation look sloppy. Watch ENT:NextThink for this