How can you make an Ai-player mimic the player
by Bill Vee · in Technical Issues · 01/03/2005 (5:31 pm) · 1 replies
What I need is a method in C/C++ ,not script , to make an Ai controlled player mimic the players animation , arm position and head angle.
I have gone thru the player.cc/.h files and I don't quite have a handle of of how to do this.
I have tried in script with mixed results. I can get it to play certain animations but not the head and arm angles.
I thought something like aiplayer.mActionAnimation=player.mActionAnimation could be done.
Any help would be grateful.
I have gone thru the player.cc/.h files and I don't quite have a handle of of how to do this.
I have tried in script with mixed results. I can get it to play certain animations but not the head and arm angles.
I thought something like aiplayer.mActionAnimation=player.mActionAnimation could be done.
Any help would be grateful.
Torque Owner Bill Vee
Let me document my problems more clearly.
I can take a pointer to Aiplayer object and do a static cast to try and update the armanimation thread to match the player thread.
It will adjust the animation as long as I am moving the player but as soon as I stop and sometimes while I am moving the Aiplayer resets to its default animation.
In other words something in the player or aiplayer class is resetting the animation.
I have found a few calls to reset the animation under various conditions and have removed them and still the problem persists.
The concept is simple. I want to have a few aiplayers walk in step as if they were marching. This can be done in script but they don't keep instep with one another.