Entity:SelectWeightedSequence
Description
Returns sequence ID corresponding to given activity ID.
Multiple sequences can be assigned to a single ACT enum, in which case a random one will be selected. This can be used for example to randomize idle animations (and is used for that by built-in weapons) without the need to code logic for this.
See also Entity:SelectWeightedSequenceSeeded.
Opposite of Entity:GetSequenceActivity.
Similar to Entity:LookupSequence.
Arguments
Returns
Example
Use this hook to check if the model has a certain ACT_* enumeration, and if it does, play it.
Output: Will play the ACT_VM_RELOAD_EMPTY enumeration if the model has it. If not, it will play the normal reload enum.