Entity/SelectWeightedSequenceSeeded

From Garry's Mod
Jump to: navigation, search
 Entity:SelectWeightedSequenceSeeded( )

Contents

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

number act

The activity ID, see ACT_ Enums.

Arguments

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

number

The sequence ID
Personal tools
Navigation