Garry's Mod Wiki

Entity:SelectWeightedSequenceSeeded

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: 42ms

Session 0
DB GetPage 4
Generate Html 14
SaveChanges 12
Render Body 0
Render Sidebar 10