GSC reference › Built-in
DisableWeaponFire()
Built-in (engine)
Server
Player Called on: player
Disable the player's weapon fire
Signature
<player> DisableWeaponFire()
Called on an entity: player DisableWeaponFire(...)
Example (from Treyarch's docs)
player DisableWeaponFire(()
Real uses in BO3's scripts
Called 2 times in the decompiled scripts. A few, zombies first:
- scripts/cp/_laststand.gsc, line 1028
reviver disableweaponfire(); - scripts/cp/cp_mi_sing_biodomes_util.gsc, line 172
self disableweaponfire();
Related built-ins
- EnableWeaponFire()Enable the player's weapon fire
- FireWeapon()Fire the vehicle's weapon
- StopFireWeapon()Stop firing the vehicle's main weapon
- 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
- GetWeaponsListPrimaries()
- GetWeaponAmmoClip()Get the weapon's ammo count in clip
- SetWeaponAmmoStock()Set the weapon's ammo
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).