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

XGame.Intro_Crowd


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
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
// ====================================================================
//  Class:  XGame.Intro_Crowd
//  Parent: XGame.xIntroPawn
//
// ====================================================================

class Intro_Crowd extends xIntroPawn;

var(Crowd) export editinline array<mesh>	AvailableMeshes;	// Available meshes to pick from	

var Name nextSeq;
var float nextRate;
var float nextTween;
var float nextOffset;

// Assign a random mesh to the pawn if any have been provided

event PostBeginPlay()
{
	if (AvailableMeshes.Length>0)
	{
		LinkMesh(AvailableMeshes[rand(AvailableMeshes.Length)],false);
	}
	Super.PostBeginPlay();
}

function MultiSetup(float delay, name AnimSeq, float AnimRate, float AnimTween, float AnimOffsetClamp)
{
	nextSeq = AnimSeq;
	nextRate = AnimRate;
	nextTween = AnimTween;
	nextOffset = AnimOffsetClamp;

	if (delay>0)
		SetTimer(delay,false);
	else
		Timer();
}

event Timer()
{
	LoopAnim(nextSeq, nextRate, nextTween);
	if (NextOffset>0)
		SetAnimFrame( frand()*NextOffset);
}  

defaultproperties
{
	MeshNameString="intro_crowd.crowd_d1_a"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:36:26.000 - Creation time: Do 14.8.2014 09:58:41.142 - Created with UnCodeX