zombie_utility::spawn_zombie()
Spawns zombie. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
zombie_utility::spawn_zombie(spawner, target_name, spawn_point, round_number)
Needs #using the script that defines it (scripts/shared/ai/zombie_utility.gsc).
Parameters
| Name |
|---|
| spawner |
| target_name |
| spawn_point |
| round_number |
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 101 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 4027
ai = zombie_utility::spawn_zombie(spawner, spawner.targetname); - scripts/zm/_zm_ai_dogs.gsc, line 238
ai = zombie_utility::spawn_zombie(level.dog_spawners[0]); - scripts/zm/_zm_ai_margwa.gsc, line 801
ai = zombie_utility::spawn_zombie(level.margwa_spawners[0], "margwa", s_location); - scripts/zm/_zm_ai_margwa_elemental.gsc, line 171
ai = zombie_utility::spawn_zombie(spawner, targetname, s_location); - scripts/zm/_zm_ai_margwa_no_idgun.gsc, line 843
ai = zombie_utility::spawn_zombie(level.margwa_spawners[0], "margwa", s_location);
More in zombie_utility::
- zombie_utility::set_zombie_var()Sets the zombie var.
- zombie_utility::is_player_valid()True/false check: is player valid?
- zombie_utility::set_zombie_run_cycle()Sets the zombie run cycle.
- zombie_utility::get_current_zombie_count()Returns the current zombie count.
- zombie_utility::get_round_enemy_array()Returns the round enemy array.
- zombie_utility::zombie_eye_glow_stop()zombie_utility helper: zombie eye glow stop.
- zombie_utility::zombie_head_gib()zombie_utility helper: zombie head gib.
- zombie_utility::reset_attack_spot()Resets attack spot.
- zombie_utility::gib_random_parts()zombie_utility helper: gib random parts.
- zombie_utility::setfootstepeffect()Sets the footstep effect.
- zombie_utility::ai_calculate_health()zombie_utility helper: AI calculate health.
- zombie_utility::round_spawn_failsafe()zombie_utility helper: round spawn failsafe.
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).