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

Engine.Mirror


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
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
class Mirror extends Actor
    HideCategories(Advanced, Mirrors, Events, Force, Karma, Havok, LightColor, Lighting, Movement, Object, Sound)
    placeable
    native;

cpptext 
{
	virtual void CheckForErrors();
    virtual void PostEditAdd(GroupFactory& Grouper);
	virtual void PostEditChange();
	virtual void PostEditLoad();
}

var private nocopy MirrorCamera MyCamera; // The MirrorCamera must be spawned by PostEditAdd() when the Mirror is placed
var() int MirrorSkinIndex "This is the Skin array index that the mirror texture will override.";

function PostNetBeginPlay()
{
    Super.PostNetBeginPlay();

    assertWithDescription( MyCamera != None, "Error: MyCamera is none for "$Self$".  This is either an old instance of the mirror, or someone deleted the MirrorCamera that was auto-created when this Mirror was placed has been deleted. Please delete this Mirror, and place a new one." );  

    if (Skins.Length == 0)
        Skins.Length = MirrorSkinIndex;

    Skins[MirrorSkinIndex] = MyCamera.MirrorMaterial;
}

defaultproperties
{
    DrawType=DT_StaticMesh
    StaticMesh=StaticMesh'Editor_res.TexPropCube'
    DrawScale=0.15
    bIsMirror=true
    bEdShouldSnap=True
    bStatic=True
    bStaticLighting=false
    bShadowCast=True
    bCollideActors=True
    bBlockActors=True
    bBlockPlayers=True
    bBlockKarma=True
    bWorldGeometry=True
    CollisionHeight=+000001.000000
    CollisionRadius=+000001.000000
    bAcceptsProjectors=True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 16:01:22.000 - Creation time: st 23.5.2018 00:10:45.644 - Created with UnCodeX