Call of Duty 4: Scripting Reference - AI::DropWeapon

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


DropWeapon( <weapon name>, <hand>, <throw speed> )

Module: AI
SP Only

Summary:

Drop the actor's weapon


Call this on: <actor> An actor

Example:

self DropWeapon( self.weapon, self.anim_gunHand, throwVel );

Required arguments:

  1. <weapon name> (string) The name of the weapon.
  2. <hand> (string) The weapon hand. Can be either "left" or "right".
  3. <throw speed> (float) The speed that the weapon is thrown at.


Optional arguments:

none


Notes:

none