Garry's Mod Wiki

Player:AddVCDSequenceToGestureSlot

  Player:AddVCDSequenceToGestureSlot( number slot, number sequenceId, number cycle, boolean autokill = false )

Description

Plays a sequence directly from a sequence number, similar to Player:AnimRestartGesture. This function has the advantage to play sequences that haven't been bound to an existing ACT enum

This is not automatically networked. This function has to be called on the client to be seen by said client.

Arguments

1 number slot
Gesture slot using GESTURE_SLOT enum
2 number sequenceId
The sequence ID to play, can be retrieved with Entity:LookupSequence.
3 number cycle
The cycle to start the animation at, ranges from 0 to 1.
4 boolean autokill = false
If the animation should not loop. true = stops the animation, false = the animation keeps playing.