Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...