Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UnrealI.Boulder


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
//=============================================================================
// Boulder.
//=============================================================================
class Boulder expands Decoration;

#exec MESH IMPORT MESH=BoulderM ANIVFILE=MODELS\rock_a.3D DATAFILE=MODELS\rock_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=BoulderM X=0 Y=0 Z=0 YAW=64

#exec MESH SEQUENCE MESH=BoulderM SEQ=All  STARTFRAME=0  NUMFRAMES=4
#exec MESH SEQUENCE MESH=BoulderM SEQ=Pos1  STARTFRAME=0   NUMFRAMES=1
#exec MESH SEQUENCE MESH=BoulderM SEQ=Pos2  STARTFRAME=1   NUMFRAMES=1
#exec MESH SEQUENCE MESH=BoulderM SEQ=Pos3  STARTFRAME=2   NUMFRAMES=1
#exec MESH SEQUENCE MESH=BoulderM SEQ=Pos4  STARTFRAME=3   NUMFRAMES=1

#exec TEXTURE IMPORT NAME=JBoulder1 FILE=MODELS\rock.PCX GROUP=Skins
#exec MESHMAP SCALE MESHMAP=BoulderM X=0.1 Y=0.1 Z=0.2
#exec MESHMAP SETTEXTURE MESHMAP=BoulderM NUM=1 TEXTURE=JBoulder1

function PostBeginPlay()
{
    local float Decision;

    Super.PostBeginPlay();
    Decision = FRand();
    if (Decision<0.25) PlayAnim('Pos1');
    if (Decision<0.5) PlayAnim('Pos2');
    if (Decision<0.75) PlayAnim('Pos3');
    else PlayAnim('Pos4');  
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 12:52:32.000 - Creation time: za 22-4-2006 12:53:44.640 - Created with UnCodeX