Jump to content
Sign in to follow this  
Alek10

Talking animation

Recommended Posts

Hello.

I have been searching alot for this, but I can't find out how to do it.

I need to make 2 or more Ai's standing and talking to each. Not with chat or anything, just the animation, where they move their mouths and maybe arms a little too.

I don't know much about coding, so please write the whole code to make it happend.

Oh and it need to be a loop so they won't stop

:-)

Share this post


Link to post
Share on other sites

Put this in the unit's init field:

[this,"STAND","ASIS"] call BIS_fnc_ambientAnim;

Or if you want them to be able to respond to contact, use this:

[this,"STAND","ASIS"] call BIS_fnc_ambientAnimCombat;

Edited by LOzan
Typo

Share this post


Link to post
Share on other sites

Thanks, that works, even tough their mouth/lips don't move much, but it will go. From a little distance it looks like they are talking..

But how do I make it work if they are unarmed?

I mean it still works, but the movements and arm positions are only for armed men??

Share this post


Link to post
Share on other sites

"STAND_U1", "STAND_U2" and "STAND_U3" are for unarmed units. And this will cause some lip movement:

this setRandomLip true;

Share this post


Link to post
Share on other sites

STAND_U1 to U3 don't seem to work. Nothing happens

Share this post


Link to post
Share on other sites

Oh I was using BIS_fnc_ambientAnimCombat. I removed "Combat" so it works now. Thank you very much :)

Now I can finally continue my mission

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  

×