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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 06:35, 31 July 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=ClearAnim( <animation>, <time> ) |Module=Animation |Available=SP Only |Summary=Sets an animation's goal weight (and the goal weights of all of its d...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


ClearAnim( <animation>, <time> )

Module: Animation
SP Only

Summary:

Sets an animation's goal weight (and the goal weights of all of its descendents) to zero over the specified time.


Call this on: <entity> The entity to clear the animation on.

Example:

self ClearAnim( %root, 0);

Required arguments:

  1. <animation> The animation or animtree node to clear
  2. <time> The blending time for the clear


Optional arguments:

none


Notes:

none