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

From COD Modding & Mapping Wiki
Revision as of 06:36, 31 July 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=AnimScripted( <notify>, <origin>, <angles>, <animation>, <mode>, <root> ) |Module=Animation |Available=SP Only |Summary=Runs...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Module: Animation
SP Only


Runs an animscript on an entity.

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


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