Entity.RestartGesture

From GMod Wiki

Revision as of 12:56, 15 October 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.RestartGesture]Entity.RestartGesture [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionSet the owner to play a "halt" gesture. (use this on a player, only players have this animation)
Used onNewerShared.png
Code
self.Owner:RestartGesture( ACT_SIGNAL_HALT )
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox