I wanted to create a string, where you can type the animation you want in the editor.
It then gets send in the spot where the loopanimation is, so you have a variable that can change.
This is the code:
Code: Select all
class Humper1 expands IntroDude;
var() string AnimationChoice; //type which animation you want
function PostBeginPlay()
{
Super.PostBeginPlay();
LoopAnim( 'AnimationChoice',0.7,0.1); //put that animation here and loop it
}
I want to understand how this all works.