GSC reference › Built-in

CreateSoundRandom()

Built-in (engine) Client

Create sound random at the position

Signature

CreateSoundRandom(<position>, <name>, <min wait>, <max wait>)

Parameters

NameRequired?Details
positionRequired The position
nameRequired The sound name
min waitRequired The minimum wait time
max waitRequired The maximum wait time

Example (from Treyarch's docs)

CreateSoundRandom(randSound.origin, randSound.script_sound, randSound.script_wait_min, randSound.script_wait_max)

Real uses in BO3's scripts

Called 1 time in the decompiled scripts. A few, zombies first:

Related built-ins

New to GSC?

Start with the basics, or paste a compile error to get the fix.

Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).