WeaponReady (script event)

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Enables the ability of the weapon to fire.

Usage

void weaponReady()

Parameters

This event does not accept parameters.

Examples

  if ( !ammoInClip() ) {
    weaponOutOfAmmo();
  } else {
    weaponReady();
  }

Notes

This script event does not return any values.

It can be found in every weapon script in code similar to that depicted in the example.