Game Development Community

Need help please

by MARIA SALAZAR · in Torque Game Engine · 07/20/2008 (1:49 am) · 0 replies

So basicly, I want this : While movement key pressed,I press an attack button
-my player stop moving (because I want to play full body animation but it's not necessary)
-play animation (melee attack)
- when animation finish ,go on running

I tried setArmThreadPlayOnce() but that will make my player attacked and moved with the regular speed so I put $movementSpeed =0; before setArmThread but It didnot work unless I release the movement button first.
I read thru TDN website about command in console. I found commands to stop movement (stop() and setMoveSpeed() )but it works for AI not for a player. I also try %player.setMaxSpeed() like this one
http://www.garagegames.com/mg/forums/result.thread.php?qt=21343 but in the console said "unable to find this function" Can anyone help me do this please