Holstering a weapon
by Joel Hargarten · in Artist Corner · 10/26/2005 (9:36 am) · 3 replies
Hey,
Can someone show me how to holster a sword weapon with a function that could just be called? The function would play the animation sequence and then unmount the sword to the holster mount. And then when called again it would reverse the process so that the sword could be drawn from the holster. I am unfamilliar with the code commands that it would take to do this, it would really be appriciated if someone could give me some examples. Thanks.
Can someone show me how to holster a sword weapon with a function that could just be called? The function would play the animation sequence and then unmount the sword to the holster mount. And then when called again it would reverse the process so that the sword could be drawn from the holster. I am unfamilliar with the code commands that it would take to do this, it would really be appriciated if someone could give me some examples. Thanks.
#2
10/26/2005 (9:43 am)
How does the wave animation thread help me holster a weapon? I can see where it shows me how to play an animation and that will be helpful, but how do I change what mount the weapon is mounted to? What code command allows me to switch from the "right hand mount" to the "holster mount"? Thanks.
#3
Using one of the new torque IDE's I would search the project for mount0 and see where the weapon mount is defined. Then you would just need to code a play animation thread and mount as if you were mounting it as the weapon just changing the mount point.
Wish I could be more help however my programming skills are lacking.
10/27/2005 (10:53 am)
I am at work and don't have the source here, however you will need to have 2 mount points one for the weapon in the hand and the other on say the belt area.Using one of the new torque IDE's I would search the project for mount0 and see where the weapon mount is defined. Then you would just need to code a play animation thread and mount as if you were mounting it as the weapon just changing the mount point.
Wish I could be more help however my programming skills are lacking.
Torque Owner David Tiernan