home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Gameplay
/
Classes
/
FearSpot.uc
< prev
next >
Wrap
Text File
|
2003-12-11
|
724b
|
25 lines
//=============================================================================
// FearSpot.
// Creatures will tend to back away when entering this spot
// To be effective, there should also not be any paths going through the area
//=============================================================================
class FearSpot extends AvoidMarker
placeable;
var() bool bInitiallyActive;
function Touch( actor Other )
{
if ( bInitiallyActive && (Pawn(Other) != None) && (Pawn(Other).Controller != None) )
Pawn(Other).Controller.FearThisSpot(self);
}
function Trigger( actor Other, pawn EventInstigator )
{
bInitiallyActive = !bInitiallyActive;
}
defaultproperties
{
CollisionRadius=+200.000
}