Actoranimations

Parent: mud

Links the 'animations' attribute in actor to a set of animations. For example a dog may have a set of animations that are different to a human. Refer to actors for more information.

ActoranimationsItem

Unlimited elements of ACTORANIMATIONSITEM

name string
The name of the animation that links to the actor 'animations' attribute.

copyof string
Copy a preceding animation set with the name specified in 'copyof'. For example for a woman you might want to override the walking animation but copy all other human animations. Thus you might set 'copyof' to 'human' and include only one walking animation that overrides preceding one.

Actoranimation

Unlimited elements of ACTORANIMATION

name string
Name of the animation. Is linked to an actions 'animation' attribute so that when an action is performed it can play an animation.

filename string
Filename of the animation

interval integer
The number of ms between frames in the animation if using the animation above

animationmode string
Is enumerated type of 'loop', 'playonce','none','loopbackward','playoncebackward'. Specifies if animation is played once or looped either backwards or forwards.

loop loop the animation over and over
playonce play the animation once
none no animation
loopbackward loop the animation playing backwards
playoncebackward play the animation once backwards

randomizeinterval integer
Random interval added to the interval. For example if the interval is 100 and randomizeinterval is 20 when will interval will become 100+random(20)-10. Stops say three knights all idling in unison.

becomes string
If 'animationmode' is 'playonce' then once this animation is finished this is animation that is played next. For example you could be playing animation 'sit' then if it 'becomes' a 'pray' animation then it will play an animation with the name 'pray'. Thus sitting, kneeling, praying can share the same 'sit' animation and the add a prayer, kneel and sit animation to the end of it.

repeat integer
How many times play the animation. Can be used so that 'loop' isnt infinite.