Signature
AddZombieBoxWeapon(<weapon>, <weaponModelName>, <isDualWield>)
Parameters
| Name | Required? | Details |
|---|---|---|
| weapon | Required | The weapon to add |
| weaponModelName | Required | The model name of the weapon |
| isDualWield | Required | True if the weapon is dual wield, false otherwise |
Example (from Treyarch's docs)
AddZombieBoxWeapon( weapon, weapon.worldModel, weapon.isDualWield )
Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_weapons.csc, line 183
addzombieboxweapon(weapon, weapon.worldmodel, weapon.isdualwield); - scripts/zm/zm_island_ww_quest.csc, line 45
addzombieboxweapon(var_989d36e, var_989d36e.worldmodel, var_989d36e.isdualwield); - scripts/zm/zm_zod_idgun_quest.csc, line 54
addzombieboxweapon(weapon_idgun, weapon_idgun.worldmodel, weapon_idgun.isdualwield); - scripts/cp/bonuszm/_bonuszm.csc, line 1319
addzombieboxweapon(weapon, weapon.worldmodel, 0);
Related built-ins
- RemoveZombieBoxWeapon()Removes a zombie box weapon
- ResetZombieBoxWeapons()Reset the zombie box weapons
- GetWeapon()Get the requested weapon object based on game mode agnostic weapon name string
- GetCurrentWeapon()Gets the current player weapon
- GiveWeapon()Give a weapon to the player
- HasWeapon()Returns true if the player has the given weapon
- TakeWeapon()Take the weapon
- SwitchToWeapon()Switch to a different weapon or cycle weapons if no weapon is given
- SetWeaponAmmoClip()Set the weapon's ammo
- SessionModeIsCampaignZombiesGame()Returns true/false if the current session mode is a campaign game and the campaign mode is set to zombies.
- SessionModeIsZombiesGame()Returns true/false if the current session mode is a zombies game
- GetWeaponsListPrimaries()
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).