Garry's Mod Wiki

Entity:RestartGesture

  Entity:RestartGesture( number activity, boolean addIfMissing = true, boolean autokill = true )

Description

Restarts the entity's animation gesture. If the given gesture is already playing, it will reset it and play it from the beginning.

This function only works on BaseAnimatingOverlay entites.

Arguments

1 number activity
The activity number to send to the entity. See ACT enum and Entity:GetSequenceActivity
2 boolean addIfMissing = true
Add/start the gesture to if it has not been yet started.
3 boolean autokill = true