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

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


GetStartAngles( <origin>, <angles>, <animation> )

Module: Animation
SP Only

Summary:

Get the starting angles for an animation, in world coordinates, given its current position, and angles


Call this on:

Example:

 org1 = GetStartAngles( climborg, climbang, buddyanim1 );

Required arguments:

  1. <origin> The current origin of the animation in world coordinates
  2. <angle> The current angle set of the animation in world coordinates
  3. <animation> The currently running animation


Optional arguments:

none


Notes:

none