Trying to get player to play animation
by Jeremy Reddoch · in Technical Issues · 10/25/2004 (11:59 am) · 3 replies
I am trying to get the user player to play a certain animation onCollision of a pickup. In my Player.cs file I have this..
function Player::playPrayAnimation(%this)
{
%this.setActionThread("pray");
}
In my prayToken.cs I have this....
function zachPray()
{
echo("Trying to Pray");
%client = $localClient;
%client.player.playPrayAnimation();
}
I am not getting an error message in the console, but I am not seeing the animation at all. What am I doing wrong
function Player::playPrayAnimation(%this)
{
%this.setActionThread("pray");
}
In my prayToken.cs I have this....
function zachPray()
{
echo("Trying to Pray");
%client = $localClient;
%client.player.playPrayAnimation();
}
I am not getting an error message in the console, but I am not seeing the animation at all. What am I doing wrong
#2
12/05/2004 (5:32 am)
Mark the sequence as noncyclic, complete sequence, and see if that helps.
#3
I am having almost the same problem as here, I have the animation set so it does not cycle.
Here is what I have in the player file
function Player::playShoot(%this)
{
%this.setActionThread("fire");
}
The Sequence node in the player file that I used to export the DSQ file is named fire.
and this is what I have in the gun file with player.cs exec, in my function to shoot the gun. It will play the gun's animation, but not the character
echo("Calling the fire animation for character");
%client = $localClient;
%client.player.playShoot();
Please help me, I am racking my brain trying to get this to work.
08/29/2008 (4:51 pm)
I am trying to get my player to animate with a crank on the gun he is firing and I can't get the player to animate when the gun fires.I am having almost the same problem as here, I have the animation set so it does not cycle.
Here is what I have in the player file
function Player::playShoot(%this)
{
%this.setActionThread("fire");
}
The Sequence node in the player file that I used to export the DSQ file is named fire.
and this is what I have in the gun file with player.cs exec, in my function to shoot the gun. It will play the gun's animation, but not the character
echo("Calling the fire animation for character");
%client = $localClient;
%client.player.playShoot();
Please help me, I am racking my brain trying to get this to work.
Torque Owner AndrewOsborne
how are you calling zachpray()?
and have you included praytoken.cs in your execs?