UnrealShare
Class TeleporterZone

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

class TeleporterZone
extends Engine.ZoneInfo

/* TeleporterZone anything entering this zone automatically touches the associated teleporter */
Variables
 name TeleporterTag
 Teleporter myTeleporter


Function Summary
 void PostBeginPlay()



Source Code


00001	/*
00002	TeleporterZone
00003	
00004	  anything entering this zone automatically touches the associated teleporter
00005	*/
00006	
00007	class TeleporterZone extends ZoneInfo;
00008	
00009	var() name TeleporterTag;
00010	var Teleporter myTeleporter;
00011	
00012	function PostBeginPlay()
00013	{
00014		Super.PostBeginPlay();
00015		if ( TeleporterTag != '' )
00016			ForEach AllActors(class'Teleporter', myTeleporter, TeleporterTag)
00017				break;
00018	}
00019	
00020	event ActorEntered( actor Other )
00021	{
00022		if ( myTeleporter != None )
00023			myTeleporter.Touch(Other);
00024	}
00025	
00026	defaultproperties
00027	{
00028	}

End Source Code