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 Enums/ACT.
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

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 4
Generate Html 8
SaveChanges (1) 9
Render Body 0
Render Sidebar 12