util::spawn_anim_model()
Spawns animation model. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
util::spawn_anim_model(model_name, origin, angles, n_spawnflags = 0, b_throttle)
Needs #using the script that defines it (scripts/shared/util_shared.gsc).
Parameters
| Name | Details |
|---|---|
| model_name | |
| origin | |
| angles | |
| n_spawnflags | default: 0 |
| b_throttle |
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 14 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_weap_dragon_strike.gsc, line 503
var_2fcea154 = util::spawn_anim_model("c_zom_dlc3_dragon_body_airstrike", var_5d020ece.var_53d81d57, var_5d020ece.angles + vectorscale((1... - scripts/zm/zm_castle_ee_bossfight.gsc, line 307
var_da3dbbdf = util::spawn_anim_model("c_zom_dlc1_keeper_archon_small_fb", var_4fafa709.origin, vectorscale((0, 1, 0), 90)); - scripts/zm/zm_island_spider_quest.gsc, line 103
var_85683d05 = util::spawn_anim_model("c_zom_dlc2_queen_spider"); - scripts/shared/scene_shared.gsc, line 767
m_player = util::spawn_anim_model(level.player_interactive_model); - scripts/cp/cp_mi_sing_vengeance_dogleg_1.gsc, line 644
var_ccf9b73f = util::spawn_anim_model("p7_ven_gascan_static");
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_any_timeout()Waits for any of the listed notifies, or until the timeout (seconds) runs out.
- 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.
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).