home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Engine
/
Classes
/
TexPannerTriggered.uc
< prev
next >
Wrap
Text File
|
2003-06-23
|
1KB
|
57 lines
class TexPannerTriggered extends TexPanner
native;
cpptext
{
// UTexModifier interface
virtual FMatrix* GetMatrix(FLOAT TimeSeconds);
}
var() TexOscillatorTriggered.ERetriggerAction RetriggerAction;
var() float StopAfterPeriod;
var transient float TriggeredTime;
var transient bool Reverse;
var transient bool Triggered;
function Trigger( Actor Other, Actor EventInstigator )
{
if( Triggered )
{
switch( RetriggerAction )
{
case RTA_Reverse:
Triggered = False;
TriggeredTime = Other.Level.TimeSeconds;
Reverse = True;
break;
case RTA_Reset:
Triggered = False;
TriggeredTime = -1.0;
Reverse = True;
break;
}
}
else
{
if( RetriggerAction != RTA_Retrigger )
Triggered = True;
TriggeredTime = Other.Level.TimeSeconds;
Reverse = False;
}
}
function Reset()
{
Triggered = False;
TriggeredTime = -1.0;
Reverse = False;
}
defaultproperties
{
RetriggerAction=RTA_Retrigger
StopAfterPeriod=0.5
TriggeredTime=-1.0
Reverse=False
Triggered=False
}