Jump to content
Sign in to follow this  
cojonuo

Animation loop

Recommended Posts

Hello, I have a problem with my animation loops, I try somes worksarounds but the animation don't loop. The animation I want to loop is "Acts_carFixingWheel"

I use this script,

_unit = _this select 0;
_animation = _this select 1;
_noWeapons = _this select 2;
_switchMove = _this select 3;

_unit allowDamage false;
_unit setDamage 0;
_unit setVariable ["BIS_noCoreConversations", true];
if (_noWeapons) then {removeAllWeapons _unit};

if (_switchMove) then {
while {true} do {
	_unit switchMove _animation;
	waitUntil {animationState _unit != _animation};
};
} else {
while {true} do {
	_unit playMove _animation;
	waitUntil {animationState _unit != _animation};
};
};

The animation play one time then the unit stuck at the end. Using the console debug I can see the animationState don't change and allways return "Acts_carFixingWheel".

Some help?

Thanks.

Share this post


Link to post
Share on other sites

in the Functions Viewer look for ambientAnim, it loops some animations, there is a list of them which are supported and one of them is the car fixing animation

Share this post


Link to post
Share on other sites

Ok this work thx, but I have the same issue with other animations like Acts_A_M03_briefing or Acts_A_M04_briefing I cant loop its. Is a problem with Arma 3 or only with this animations?

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  

×