Animation Coding Help

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Ola@UGA

New Member
Jul 9, 2001
2
0
0
51
GA
Visit site
:mad:
I'm pretty new to this so forgive me stupid question.

Can you tell me what is wrong with my code. My animations for my character aren't playing when I open up UT, but they play in the mesh browser in UEd.
Thanks for the help:

class Cypid extends TournamentMale;

#exec MESH IMPORT MESH=cypid ANIVFILE=MODELS\cypid_a.3d DATAFILE=MODELS\cypid_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=cypid X=0 Y=0 Z=0 YAW=60

#exec MESH SEQUENCE MESH=cypid SEQ=All STARTFRAME=0 NUMFRAMES=80
#exec MESH SEQUENCE MESH=cypid SEQ=CypidBreath2 STARTFRAME=0 NUMFRAMES=26 Group=Waiting
#exec MESH SEQUENCE MESH=cypid SEQ=CypidRunF STARTFRAME=26 NUMFRAMES=11
#exec MESH SEQUENCE MESH=cypid SEQ=CypidDeath STARTFRAME=37 NUMFRAMES=28
#exec MESH SEQUENCE MESH=cypid SEQ=CypidHit STARTFRAME=65 NUMFRAMES=1 Group=TakeHit
#exec MESH SEQUENCE MESH=cypid SEQ=CypidJump STARTFRAME=66 NUMFRAMES=1 Group=Jumping
#exec MESH SEQUENCE MESH=cypid SEQ=CypidCrouch STARTFRAME=67 NUMFRAMES=1
#exec MESH SEQUENCE MESH=cypid SEQ=CypidLookdown STARTFRAME=68 NUMFRAMES=1
#exec MESH SEQUENCE MESH=cypid SEQ=CypidLookUp STARTFRAME=69 NUMFRAMES=1
#exec MESH SEQUENCE MESH=cypid SEQ=CypidStillShot STARTFRAME=70 NUMFRAMES=10 Group=Waiting

#exec TEXTURE IMPORT NAME=Jcypid1 FILE=MODELS\cypid1.bmp GROUP=Skins FLAGS=2 // Material #69
#exec TEXTURE IMPORT NAME=Jcypid2 FILE=MODELS\cypid2.bmp GROUP=Skins PALETTE=Jcypid1 // Material #70
#exec TEXTURE IMPORT NAME=Jcypid3 FILE=MODELS\cypid3.bmp GROUP=Skins PALETTE=Jcypid1 // Material #71
#exec TEXTURE IMPORT NAME=Jcypid4 FILE=MODELS\cypid4.bmp GROUP=Skins PALETTE=Jcypid1 // Material #72

#exec MESHMAP NEW MESHMAP=cypid MESH=cypid
#exec MESHMAP SCALE MESHMAP=cypid X=0.4 Y=0.4 Z=0.7

#exec MESHMAP SETTEXTURE MESHMAP=cypid NUM=1 TEXTURE=Jcypid1
#exec MESHMAP SETTEXTURE MESHMAP=cypid NUM=2 TEXTURE=Jcypid2
#exec MESHMAP SETTEXTURE MESHMAP=cypid NUM=3 TEXTURE=Jcypid3
#exec MESHMAP SETTEXTURE MESHMAP=cypid NUM=4 TEXTURE=Jcypid4


defaultproperties
{
FaceSkin=1
FixedSkin=1
TeamSkin2=1
SelectionMesh="NuMag.cypid"
Mesh=LodMesh'NuMag.cypid
}
 

Mr.Mitchell

New Member
Sep 5, 2001
140
0
0
the Netherlands
home.ict.nl
The problem is in the names of the animation sequences. You can't just make up new names, because in the code the animations are called by name. For example PlayAnim('Dead1',,0.1); plays the animation calld "Dead1", so if you don't have an animation called Dead1 it won't play anything.

You can find a list with required animations on EpicKnights.com. Here is a direct link to that page http://epicknights.com/animation_list.shtml

You can find more info on modelling/animating for UT on EpicKnights.com(http://epicknights.com) or Polycount (http://www.planetquake.com/polycount/)