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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
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