Call of Duty Script Documentation

# setanimknobrestart(<animation>, <weight>, <time>, <rate>)

## Module

    Animation

## Summary

    Set the weighting values of an animation and restart the anim.

## Call this function on

    <entity>

## Example

    self setanimknobrestart(%precombatrun1, 1, 0.1, 1);

## Minimum Number of arguments: 1

    1 : <animation> Animation to alter

## Number of optional arguments: 3

    1 : <weight> Weight of this animation in a blend, defaults to 1.0
    2 : <time> Time to transition to this state in seconds, defaults to 0.2f
    3 : <rate> Playback rate of the animation, defaults to 1.0

Return to Function List