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

Engine.AvoidMarker


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
//=============================================================================
// 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
{
    RemoteRole=ROLE_None
    CollisionRadius=100.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fri 3/10/2008 19:00:56.000 - Creation time: Tue 27/4/2010 03:12:43.760 - Created with UnCodeX