Call of Duty 4: Scripting Reference - Animation::AnimScripted

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


AnimScripted( <notify>, <origin>, <angles>, <animation>, <mode>, <root> )

Module: Animation
SP Only

Summary:

Runs an animscript on an entity.


Call this on: <entity> The entity to run the animscript on

Example:

driver AnimScripted( "germantruck_driver_closedoor", org , angles, driver.closedooranim );

Required arguments:

  1. <notify> The notify to send
  2. <origin> The starting position of the anim script
  3. <angles> The starting angle of the anim script
  4. <animation> The animation


Optional arguments:

  1. <mode> Valid modes are "normal" and "deathplant"
  2. <root> The root animation


Notes:

none