Garry's Mod Wiki

Entity:SelectWeightedSequenceSeeded

  number Entity:SelectWeightedSequenceSeeded( number act, number seed )

Description

Returns the sequence ID corresponding to given activity ID, and uses the provided seed for random selection. The seed should be the same server-side and client-side if used in a predicted environment.

See Entity:SelectWeightedSequence for a provided-seed version of this function.

Arguments

1 number act
The activity ID, see ACT enum.
2 number seed
The seed to use for randomly selecting a sequence in the case the activity ID has multiple sequences bound to it. Entity:SelectWeightedSequence uses the same seed as util.SharedRandom internally for this.

Returns

1 number
The sequence ID