sub SetActorAnimation( actor, animation, num_loops)

Sets the current animation for an actor to start playing

Notes on num_loops

  1. num_loops is the number of times to loop the animation after its done playing. To play the animation once, set num_loops to 0.
  2. To loop an animation infinitely, set num_loops to -1

Related: CreateActorAnimation