Botpack
Class BoulderSpawner

source: e:\games\UnrealTournament\Botpack\Classes\BoulderSpawner.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Effects
         |
         +--Botpack.BoulderSpawner
Direct Known Subclasses:None

class BoulderSpawner
extends Engine.Effects

//============================================================================= // BoulderSpawner. //=============================================================================
Variables
 int BoulderCount
 int BoulderSpeed
 int BouldersTothrowAfterDeactivated
 TriggerDelay, RepeatDelay


Function Summary
 void Trigger(Actor Other, Pawn EventInstigator)



Source Code


00001	//=============================================================================
00002	// BoulderSpawner.
00003	//=============================================================================
00004	class BoulderSpawner extends Effects;
00005	
00006	var() float TriggerDelay, RepeatDelay;
00007	var() int BouldersTothrowAfterDeactivated;
00008	var() int BoulderSpeed;
00009	var int BoulderCount;
00010	
00011	function Trigger( actor Other, pawn EventInstigator )
00012	{
00013		local CatapultRock a;
00014	
00015		Instigator = EventInstigator;
00016		a = Spawn(class'CatapultRock',,, Location+Vector(Rotation)*20);
00017		a.Speed = BoulderSpeed;
00018	}
00019	
00020	defaultproperties
00021	{
00022	     bOnlyTriggerable=True
00023	     bHidden=True
00024	     bDirectional=True
00025	     DrawType=DT_Sprite
00026	}

End Source Code