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

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


SetAimAnims( <aim low>, <aim level>, <aim high>, <shoot low>, <shoot level>, <shoot high> )

Module: AI
SP Only

Summary:

Sets the aim animations for this actor


Call this on: <actor> An actor

Example:

self SetAimAnims( anims["aim_down"], anims["aim_straight"], anims["aim_up"], anims["shoot_down"], anims["shoot_straight"], anims["shoot_up"] );

Required arguments:

  1. <aim low> The animation to play for the actor aiming low
  2. <aim level> The animation to play for the actor aiming straight
  3. <aim high> The animation to play for the actor aiming high
  4. <shoot low> The animation to play for the actor shooting low
  5. <shoot level> The animation to play for the actor shooting straight
  6. <shoot high> The animation to play for the actor shooting high


Optional arguments:

none


Notes:

none