Jump to content
Sign in to follow this  
Walkero0

How to play sound on rtm animation?

Recommended Posts

I have this class in my config.cpp:

class cfgsounds
{
	class bear_roar
	{
		name = "bear_roar";
		sound[] = {"\wlk_animals\bear\sounds\bear_idle_roar",0.70794576,1};
		titles[] = {0,""};
	};
};

and added this to my class States:

class Bear_Idle_Walk: Bear_Idle_Stop
		{
			duty = -0.7;
			file = "\wlk_animals\bear\anim\bear_walk";
			speed = 0.4;
			variantsAI[] = {};
			looped = 1;
			soundEdge[] = {0.5}; 
			soundEnabled = 1;
			soundOverride = "bear_roar";
			head = "headDefault";
			connectTo[] = {"Bear_Idle_Stop",0.1};
			interpolateTo[] = {"Bear_Idle_Run",0.1,"Bear_Idle_Eat",0.1,"Bear_Idle_Stop",0.1,"Bear_Stop",0.5,"Bear_Walk",0.5,"Bear_Run",0.5,"Bear_Die",0.1};
		};

but it is still silent when animation is running.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×