Game Development Community

How can i change the Sequence While Mounting

by TigerHeros · in Torque 3D Professional · 07/23/2010 (12:28 pm) · 1 replies

Hi All

In My Project


When the user click the sword dts. The Sword should mount in the user hand. I have done it.

but my problem is when i click the sword the sequence should change.

The player run sequence("./run.dsq) should

change to Player sword keeping sequence("./sword.dsq").

How can i call the Sequence While mounting.

Any ideas welcome.

#1
12/16/2010 (4:07 am)
you can use .setarmthread() function.

add some script code to weaponimage::onmount() funtion in scripts/server/weapons.cs.

%obj.setarmthread( Your Sequence Name );