Game Development Community

How to move from "sitting" animation to "rootpose"?

by elvince · in Torque 3D Professional · 07/31/2010 (12:22 pm) · 3 replies

Hi,

I tried to understand the sequence animation in T3D and I'm a little bit lost:

I have a chair, when I mount the player on it I do %obj.setActionThread("sitting", true, true);
When I unmount, I do %obj.setActionThread("root", true, true);

The issue is, the player stick to the sitting pose until I move.

Can someone help me?

FYI, I'm on T3D B1 if it matters.

#1
08/03/2010 (5:35 am)
function Armor::onUnmount(%this, %obj, %vehicle, %node)
{
%obj.setActionThread("run", true, true);

if (%node == 0)
{
%obj.mountImage(%obj.lastWeapon, $WeaponSlot);
%obj.setControlObject("");
moveforward(1); //Place the Code Here
}
}

While person click the UnMount the Chair

$chair.unmountObject(%client.player);
schedule(150,0,"moveforward"); //place the code Here.


I have also done this. Its work for me. U try any questions let me know.

#2
08/03/2010 (6:41 am)
Hi,

thanks for your proposal that's not working in Multiplayer as moveforward is on client side and the unmount on the serverside.

More, I think it more like a hack to force the player to simulate a small move to get the right result.
I'm sure there should be something as in the shape editor I can move from Sitting to Root, I just need to understand how they are changing the sequence behind the scene.
#3
08/03/2010 (8:42 am)
@elvince

I have tested only with client side.Its work for me in client side. Any how u try.