Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UnrealShare.MapProjector


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
// MapProjector - To use in maps.
Class MapProjector extends Projector;

var() bool bOnlyAttachStaticActors;
var() name IgnoreAttachActorTag; // Do not attach projector on these actors with this tag.

simulated function PostBeginPlay()
{
	if( Level.NetMode==NM_DedicatedServer )
		SetCollision(false);
	else
	{
		AttachPrjDecal();
		Role = ROLE_Authority;
	}
}
simulated function Touch( Actor Other )
{
 if( bProjectActors && !Other.bHidden && Other.DrawType==DT_Mesh && Other.Mesh!=None && (!bOnlyAttachStaticActors || Other.bStatic)
  && (IgnoreAttachActorTag=='' || Other.Tag!=IgnoreAttachActorTag) )
  AttachActor(Other);
}
simulated function Untouch( Actor Other );

defaultproperties
{
				bOnlyAttachStaticActors=True
				bUseBetterActorAttach=True
				bNoDelete=True
				Texture=Texture'UnrealShare.Icons.UIProjectorIcon'
				bCollideActors=False
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: zo 11-11-2012 21:10:28.000 - Creation time: zo 11-11-2012 21:14:19.209 - Created with UnCodeX