setAnimationState

setAnimationState <state>

Allows you to set the animation used for the skeleton. This is associated to a .baf file located in the animations folder.

Example:

In this example, FlagBlow.baf

ObjectTemplate.create AnimatedBundle AnimatedGeFlag
ObjectTemplate.geometry flagge_m1
ObjectTemplate.createSkeleton animations/flag.ske
ObjectTemplate.setAnimationState FlagBlow
ObjectTemplate.loadSoundScript Sounds/flag.ssc

Valid object types

AnimatedBundle