From Garry's Mod
This function is only usable on view models.
Sequences 0-6 will not be looped regardless if they're marked as a looped animation or not.
Issue Tracker: #3229
Converting an ACT_VM_* enumeration to a sequence usable by the function.
local VModel = self.Owner:GetViewModel( ) local EnumToSeq = VModel:SelectWeightedSequence( ACT_VM_PRIMARYATTACK ) VModel:SendViewModelMatchingSequence( EnumToSeq )
Sends the primary attack enumeration sequence to the view model and plays it.