Returns OK or VR_ERROR
The function search the given object for a polygon that has an animation with the name old_animation_name
The function then replaces the animation for this specifc polygon.
This polygon is set with an animation that has the name new_animation_name
If the given object has more than one polygon with the animation old_animation_name
then the function will return VR_ERROR
See also STATE_object_replace_animation()
Arguments:
object_handle
The object handle.
old_animation_name
The name of the animation to be replaced.
new_animation_name
The name of the animation to to be set instead of old_animation_name.
|