home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Gameplay / Classes / FearSpot.uc < prev    next >
Text File  |  2003-12-11  |  724b  |  25 lines

  1. //=============================================================================
  2. // FearSpot.
  3. // Creatures will tend to back away when entering this spot
  4. // To be effective, there should also not be any paths going through the area
  5. //=============================================================================
  6. class FearSpot extends AvoidMarker
  7.     placeable;
  8.  
  9. var() bool bInitiallyActive;
  10.  
  11. function Touch( actor Other )
  12. {
  13.     if ( bInitiallyActive && (Pawn(Other) != None) && (Pawn(Other).Controller != None) )
  14.         Pawn(Other).Controller.FearThisSpot(self);
  15. }
  16.  
  17. function Trigger( actor Other, pawn EventInstigator )
  18. {
  19.     bInitiallyActive = !bInitiallyActive;
  20. }
  21.  
  22. defaultproperties
  23. {
  24.     CollisionRadius=+200.000
  25. }