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

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


SetProneAnimNodes( <down angle>, <up angle>, <low prone animation> , <straight prone animation>, <high prone animation> )

Module: AI
SP Only

Summary:

Set the prone animation nodes, as well as highest and lowest possible aim angles for this character.


Call this on: <actor> An actor

Example:

 self SetProneAnimNodes( -45, 45, %prone_legsdown, %prone_legsstraight, %prone_legsup );

Required arguments:

  1. <down angle>(float) The lowest allowable pitch in degrees for aiming. Must be less than 0
  2. <up angle>(float) The highest allowable pitch in degrees for aiming. Must be greater than 0
  3. <low prone animation> The low prone animation.
  4. <straight prone animation> The straight prone animation.
  5. <high prone animation> The high prone animation.


Optional arguments:

none


Notes:

none