Game Development Community

How to just play an anim sequence

by J Sears · in Torque Game Engine · 04/12/2007 (5:00 pm) · 2 replies

I can't figure out the correct command to just play a animation sequence, Basically I have a button setup so you click that and it goes to a function which sends over to a servercmd function where I'm trying to get it to (for now) just play an animation sequence, I can get the salute and wave to work but I'm guessing those ones are a little different since I can get them to play calling them as wave and salute if I try to call them by their sequence name of celwave or celsalute I can't get them to go. I am guessing I just can't figure out the right function to call.

#1
04/12/2007 (8:00 pm)
Hi,
If you're calling it from the server side, this should do the trick.

%client.player.setActionThread(%animationName);

If a line in your player.cs reads...
sequence32 = "./player_danceMove1.dsq boogie";

...set %animationName to "boogie", and you're good to go.

edited for typo
#2
04/13/2007 (5:37 am)
Thank you that did the trick