| Home Page | Recent Changes | Preferences

Shark

UT2003 :: Actor >> Decoration >> Shark (Package: XEffects)
class Shark extends Decoration;

#exec TEXTURE   IMPORT      NAME=SharkTex  FILE=textures\shark.tga LODSET=3 DXT=3 MIPS=1 ALPHA=1

#exec DECAANIM  IMPORT      ANIM=SharkAnims ANIMFILE=models\shark.PSA COMPRESS=1
#exec DECAANIM  DIGEST      ANIM=SharkAnims VERBOSE USERAWINFO

#exec DECAMESH  MODELIMPORT MESH=SharkMesh MODELFILE=models\shark.PSK
#exec DECAMESH  ORIGIN      MESH=SharkMesh X=0 Y=0 Z=0 YAW=0 PITCH=0 ROLL=0
#exec DECAMESH  SCALE       MESH=SharkMesh X=1.0 Y=1.0 Z=1.0
#exec DECAMESH  DEFAULTANIM MESH=SharkMesh ANIM=SharkAnims
#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
}

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?

Wormbo: No. Who needs it can look it up in the UnrealScript Source code.


Category Class (UT2003)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In