Problem with custom pose
by Aleksander Elvemo · in Torque 3D Professional · 08/28/2009 (11:02 am) · 2 replies
Hi!
I've created a new pose, newPose.
Its dependant on a single variable, mSomeVar, for activation. Like this:
else if ( mSomeVar == 1.0 )
desiredPose = newPose;
so, everytime i use the command
%player.setSomeVar(1)
the player should swap to this new pose. If i call it on a AIPlayer, it changes its pose instantly and everything is perfect. If i call it on myself, nothing happens, BUT, if i use alt-c back and forth then it changes the pose when i loose control of the player object. Its very strange, i know the mSomeVar is updating, since i can call it with getSomeVar, and it works when im not in control. But why does it not update when im in control of the object, and updates when im not in control?
Thanks for any quick replies! :)
I've created a new pose, newPose.
Its dependant on a single variable, mSomeVar, for activation. Like this:
else if ( mSomeVar == 1.0 )
desiredPose = newPose;
so, everytime i use the command
%player.setSomeVar(1)
the player should swap to this new pose. If i call it on a AIPlayer, it changes its pose instantly and everything is perfect. If i call it on myself, nothing happens, BUT, if i use alt-c back and forth then it changes the pose when i loose control of the player object. Its very strange, i know the mSomeVar is updating, since i can call it with getSomeVar, and it works when im not in control. But why does it not update when im in control of the object, and updates when im not in control?
Thanks for any quick replies! :)
#2
The thing that puzzles me is why does the bot update its animations automaticly but the player doesn't? I thought they both used the same function?
And when i alt-c and look at my player, and change the mSomeVar, it updates instantly! Grr :)
08/29/2009 (11:41 am)
Hmm, I have slowly went through the updateMove function, but i can't find any other mentions of poses.The thing that puzzles me is why does the bot update its animations automaticly but the player doesn't? I thought they both used the same function?
And when i alt-c and look at my player, and change the mSomeVar, it updates instantly! Grr :)
Associate James Ford
Sickhead Games
It's a pretty complex class I know...