UnrealShare
Class FearSpot

source: e:\games\UnrealTournament\UnrealShare\Classes\FearSpot.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Triggers
         |
         +--UnrealShare.FearSpot
Direct Known Subclasses:None

class FearSpot
extends Engine.Triggers

//============================================================================= // 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 //=============================================================================
Variables
 bool bInitiallyActive


Function Summary
 void Touch(Actor Other)
 void Trigger(Actor Other, Pawn EventInstigator)



Source Code


00001	//=============================================================================
00002	// FearSpot.
00003	// Creatures will tend to back away when entering this spot
00004	// To be effective, there should also not be any paths going through the area
00005	//=============================================================================
00006	class FearSpot extends Triggers;
00007	
00008	var() bool bInitiallyActive;
00009	
00010	function Touch( actor Other )
00011	{
00012		if ( bInitiallyActive && Other.bIsPawn )
00013			Pawn(Other).FearThisSpot(self);
00014	}
00015	
00016	function Trigger( actor Other, pawn EventInstigator )
00017	{
00018		bInitiallyActive = !bInitiallyActive;
00019	}
00020	
00021	defaultproperties
00022	{
00023	}

End Source Code