ClearActorAnimations

ClearActorAnimations

Description:
Function ClearActorAnimations clear any animations applied to an actor.
Function ClearActorAnimations was added in 0.3.7 and will not work in earlier versions!


Parameters:
(actorid)
int actorid The ID of the actor to clear the animations for.


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. The actor specified does not exist.


Examples:
new MyActor;
 
public OnGameModeInit()
{
    MyActor = CreateActor(...);
}
 
// Somewhere else
ApplyActorAnimation(MyActor, ...);
 
// Somewhere else
ClearActorAnimations(MyActor);


Related Functions
The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.