Legacy:Shark

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 06:55, 22 November 2003 by Tarquin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
UT2003 :: Actor >> Decoration >> Shark (Package: XEffects)

<uscript> class Shark extends Decoration;

  1. exec TEXTURE IMPORT NAME=SharkTex FILE=textures\shark.tga LODSET=3 DXT=3 MIPS=1 ALPHA=1
  1. exec DECAANIM IMPORT ANIM=SharkAnims ANIMFILE=models\shark.PSA COMPRESS=1
  2. exec DECAANIM DIGEST ANIM=SharkAnims VERBOSE USERAWINFO
  1. exec DECAMESH MODELIMPORT MESH=SharkMesh MODELFILE=models\shark.PSK
  2. exec DECAMESH ORIGIN MESH=SharkMesh X=0 Y=0 Z=0 YAW=0 PITCH=0 ROLL=0
  3. exec DECAMESH SCALE MESH=SharkMesh X=1.0 Y=1.0 Z=1.0
  4. exec DECAMESH DEFAULTANIM MESH=SharkMesh ANIM=SharkAnims
  5. exec DECAMESH SETTEXTURE MESH=SharkMesh NUM=0 TEXTURE=SharkTex

simulated function PostBeginPlay() {

   LoopAnim('path');
   Super.PostBeginPlay();

}

defaultproperties {

    bStatic=False
    bNoDelete=True
    Mesh=SkeletalMesh'XEffects.SharkMesh'
    Skins(0)=FinalBlend'XEffects.Shark.SharkFB'
    bShouldBaseAtStartup=False
    CollisionRadius=0.000000
    CollisionHeight=0.000000

}


</uscript>

The Shark is an example of a Skeletal Mesh Animation which when placed in your map will play automatically upon startup of gameplay and will loop continously. All of the mesh, animation and texture information is embedded in the script itself.


Tarquin: Do we really nee the whole script here?