RuneI
Class FearSpot

source: c:\runehov\RuneI\Classes\FearSpot.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Triggers
         |
         +--RuneI.FearSpot
Direct Known Subclasses:None

class FearSpot
extends Engine.Triggers

//============================================================================= // FearSpot. // // Creatures will stop when entering this spot and recalculate their move //=============================================================================
Variables
 bool bInitiallyActive


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



Source Code


00001	//=============================================================================
00002	// FearSpot.
00003	//
00004	// Creatures will stop when entering this spot and recalculate their move
00005	//=============================================================================
00006	class FearSpot extends Triggers;
00007	
00008	
00009	var() bool bInitiallyActive;
00010	
00011	
00012	function Touch(actor Other)
00013	{
00014		if (bInitiallyActive && Other.bIsPawn)
00015		{
00016			Pawn(Other).FearThisSpot(self);
00017		}
00018	}
00019	
00020	function Trigger(actor Other, pawn EventInstigator)
00021	{
00022		bInitiallyActive = !bInitiallyActive;
00023	}
00024	
00025	defaultproperties
00026	{
00027	     bInitiallyActive=True
00028	}

End Source Code