SetAnimationState Property

Usage:
   ObjectTemplate.SetAnimationState string name

Argument values:

argument 1:    0, 1, FlagBlow; most commonly FlagBlow
argument 2:    [optional] Lb_Stand, Ub_StandAim

Description: Allows you to set the animation used for the skeleton. The name specifies a .baf file located under the Animations folder. Normally used for specifying the flag animation (a single parameter) and the soldier default lower and upper body animations (two parameters, 0/1 and the name).

Related properties: CreateSkeleton, Geometry

Used in object types (and how often in each type): AnimatedBundle (4%)

Used in a total of 5 .con files: Commonsoldierdata.inc, Objects.con

Parent directories of these .con files: objects/Soldiers, objects/Items

Example: (from objects/Items/Flag/Objects.con)
   ObjectTemplate.Create AnimatedBundle AnimatedFlag
   ObjectTemplate.Geometry flagso_m1
   ObjectTemplate.CreateSkeleton animations/flag.ske
   ObjectTemplate.SetAnimationState FlagBlow
   ObjectTemplate.LoadSoundScript Sounds/flag.ssc


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.