Running custom animation.
by C. David Belt · in Artist Corner · 07/21/2005 (5:37 pm) · 3 replies
I have a new animation sequence that I have created for my player. I want to trigger the sequence by pressing a key. How do I do that?
#2
Dave
07/21/2005 (7:50 pm)
So does the "wave" animation need to be named "celwave" in the DSQ file, in the player.cs file (" sequence3 = "./player_wave.dsq celwave"; "), or both?Dave
#3
07/24/2005 (5:07 am)
That, I'm not quite clear on. The way I *think* it works is that if it is named correctly DSQ file, and don't use a name in the player.cs file ("sequence3 = "./player_wave.dsq"; "), then it will use the name in the DSQ, otherwise, you can name it whatever you want in the DSQ, and the second part ("celwave") will override the name that is inside the dsq itself.
Torque Owner Jeff Gran
moveMap.bindCmd(keyboard, "ctrl w", "commandToServer('playCel',\"wave\");", "");
copy and paste it, change the key to what you want to press, change the "wave" to the name of your animation, and then name your sequence to that plus "cel" as a prefix. I think that will work.