Call of Duty 4: Scripting Reference - Vehicles::FireWeapon

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


FireWeapon( <barrel tag>, <target ent>, <target offset> )

Module: Vehicles
SP Only

Summary:

Fire the vehicle's weapon


Call this on: a vehicle

Example:

nFlak FireWeapon();

Required arguments:

none


Optional arguments:

  1. <barrel tag> The tag name of the barrel to fire from. Passing in nothing or an empty string will default to use the vehicle's main turret.
  2. <target ent> A target entity for guided missiles
  3. <target offset>


Notes:

none