home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Engine
/
Classes
/
AvoidMarker.uc
< prev
next >
Wrap
Text File
|
2003-06-23
|
749b
|
31 lines
//=============================================================================
// AvoidMarker.
// Creatures will tend to back away when near this spot
//=============================================================================
class AvoidMarker extends Triggers
native
notPlaceable;
function Touch( actor Other )
{
if ( (Pawn(Other) != None) && (Pawn(Other).Controller != None) )
Pawn(Other).Controller.FearThisSpot(self);
}
function StartleBots()
{
local Pawn P;
ForEach CollidingActors(class'Pawn', P, CollisionRadius)
{
if ( AIController(P.Controller) != None )
AIController(P.Controller).Startle(self);
}
}
defaultproperties
{
bStatic=false
CollisionRadius=+100.000
RemoteRole=ROLE_None
}