Getting animations on the player to work, plz help
by Tom · in Artist Corner · 08/03/2006 (9:04 am) · 3 replies
Ok,
lets say i have animation x, and if i press "k" animation x on the player should play. how can i do this? i searched and searched without answeres, its on the player object.
i also tried the playCel command to server without much luck.
im hoping that once i have this, i can play animations while fireing a weapon (sword) or moving while mounted on a vehicle (inline skates)
plz plz plz helop me out, i just dont know what to do, or if it is even possible to do what i want to do.
lets say i have animation x, and if i press "k" animation x on the player should play. how can i do this? i searched and searched without answeres, its on the player object.
i also tried the playCel command to server without much luck.
im hoping that once i have this, i can play animations while fireing a weapon (sword) or moving while mounted on a vehicle (inline skates)
plz plz plz helop me out, i just dont know what to do, or if it is even possible to do what i want to do.
#2
as for the player, yes that was the first thing i did, i made my main character and replaced the file in player.cs on the server side, i also changed the exec at the top.
but doing this makes you lone ork also the same model, so i made a new file called beast, and in aiplayer.cs where it says demoplayer : player body i changed it to demoplayer : beast body (datablock name)
this made me my character and keeped the bot as the ork named kork :)
hope this helps
08/14/2006 (8:44 am)
Sadly i have not had any luck solving the problem of playing the animation, however i did find some commands that might help me out (playThread(thread)) i havent tried it yet since i sort of worked around my problem with the server side melee resource (i needed the animations for swords). as for the player, yes that was the first thing i did, i made my main character and replaced the file in player.cs on the server side, i also changed the exec at the top.
but doing this makes you lone ork also the same model, so i made a new file called beast, and in aiplayer.cs where it says demoplayer : player body i changed it to demoplayer : beast body (datablock name)
this made me my character and keeped the bot as the ork named kork :)
hope this helps
#3
the playThread function is a good place to start.
begin by searching all your script code for this function being used and locate the command reference for the 'w' key (I think)
anyhow, the wave key that makes the Orc wave.
with this piece of code you should be able to get your own animation working.
08/14/2006 (9:02 am)
Tom:the playThread function is a good place to start.
begin by searching all your script code for this function being used and locate the command reference for the 'w' key (I think)
anyhow, the wave key that makes the Orc wave.
with this piece of code you should be able to get your own animation working.
Torque Owner Levi Putna
I have been trying to get my model to work as the player eg. (Instead of Kork) with little luck, have you been able to do this?