Hey everyone,
I have been making a live base, and It has a lot of animations going. I have been using this script:
PHP Code:
_unit = _this select 0;
_anim = _this select 1;
while{alive _unit}do{
_unit playMove _anim;
waitUntil{animationState _unit != _anim};
};
And calling it with:
PHP Code:
0 = [this,"WhateverAnimationHere"] execVM "animLoop.sqf";
It has been working so far, but when I try some animations like:
Where the guy is talking and looking to his right, it doesn't even want to play. I do it the traditional way (Make a trigger, add "this switchmove "animation", make a waypoint add "this switchmove "animation") and it works fine, but it doesn't loop. I tried this to see if it would loop:
PHP Code:
animLoop = {_unit = _this select 0; _anim = _this select 1; while{alive _unit}do{_unit playMove _anim; waitUntil{animationState _unit != _anim}}}
And then put this in the waypoint and trigger:
PHP Code:
0 = [this,"WhateverAnimationHere"] spawn animLoop
And it still doesn't play.
Any ideas?