util::waittill_any_timeout()
Waits for any of the listed notifies, or until the timeout (seconds) runs out. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
util::waittill_any_timeout(n_timeout, string1, string2, string3, string4, string5)
Needs #using the script that defines it (scripts/shared/util_shared.gsc).
Parameters
| Name |
|---|
| n_timeout |
| string1 |
| string2 |
| string3 |
| string4 |
| string5 |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 208 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_margwa_elemental.gsc, line 1791
self.traveler util::waittill_any_timeout(time, "movedone"); - scripts/zm/_zm_ai_quadrotor.gsc, line 353
self util::waittill_any_timeout(4, "near_goal", "force_goal", "death", "change_state"); - scripts/zm/_zm_ai_raps.gsc, line 1076
self util::waittill_any_timeout(20, "death"); - scripts/zm/_zm_ai_spiders.gsc, line 1315
self util::waittill_any_timeout(10, "death"); - scripts/zm/_zm_altbody.csc, line 205
level util::waittill_any_timeout(0.15, "demo_jump");
More in util::
- util::wait_network_frame()Waits one or more network frames (a server snapshot) before continuing.
- util::spawn_model()Spawns a script_model with the given model at an origin and angles, and returns it.
- util::waittill_any()Waits until the entity receives any one of the listed notifies.
- util::waittill_dobj()Waits until the entity's model (dobj) exists on the client.
- util::waittill_any_return()Waits for any of the listed notifies and returns the one that fired.
- util::clientnotify()Sends a notify from the server to client scripts.
- util::delay()Runs a function after a delay (seconds or a notify), optionally ending on another notify.
- util::freeze_player_controls()Freezes or unfreezes a player's controls.
- util::setobjectivescoretext()Sets the objective score text for a team.
- util::getotherteam()Returns the opposing team name for a team.
- util::delay_notify()util helper: delay notify.
- util::gethostplayer()Returns the host player.
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).