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

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


GetPartName( <xmodel name>, <index> )

Module: Animation

Summary:

Gets the name of a part of a model.


Call this on:

Example:

partName = GetPartName( self.hatModel, 0 )

Required arguments:

  1. <xmodel name> The name of the model
  2. <index> The part index. Must be less than the number of bones in the model.


Optional arguments:

none


Notes:

none