The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
Legacy:MultiSkyboxZoneInfo
From Unreal Wiki, The Unreal Engine Documentation Site
UT2003 Version[edit]
-
//=============================================================================
-
// MultiSkyboxZoneInfo.
-
// Input the tag of the skybox you want the fake backdrop surfaces of the zone to display
-
//
-
// (c) Zxanphorian 2002
-
// tornado.f5@worldnet.att.net
-
//=============================================================================
-
class MultiSkyboxZoneInfo extends ZoneInfo
-
placeable;
-
-
-
-
var() name SkyZoneTag;
-
-
-
-
simulated function LinkToSkybox()
-
{
-
local SkyZoneInfo Skybox;
-
-
Super.LinkToSkybox();
-
foreach AllActors( class 'SkyZoneInfo', Skybox, SkyZoneTag )
-
{
-
SkyZone = Skybox;
-
}
-
-
-
}
UT Version[edit]
-
class SelectiveSkyZoneInfo expands ZoneInfo;
-
-
var() name SelectedSky;
-
-
simulated function LinkToSkybox()
-
{
-
local skyzoneinfo TempSkyZone;
-
-
if(SelectedSky != 'None')
-
{
-
foreach AllActors(class'SkyZoneInfo', TempSkyZone, SelectedSky)
-
{
-
SkyZone = TempSkyZone;
-
return;
-
}
-
}
-
-
foreach AllActors( class 'SkyZoneInfo', TempSkyZone, '' )
-
SkyZone = TempSkyZone;
-
-
foreach AllActors( class 'SkyZoneInfo', TempSkyZone, '' )
-
if( TempSkyZone.bHighDetail == Level.bHighDetailMode )
-
SkyZone = TempSkyZone;
-
}
UT version (alternate version?)[edit]
class MultiSkyZoneInfo expands ZoneInfo; simulated function LinkToSkybox() { local skyzoneinfo Sky; Super.LinkToSkybox(); foreach AllActors( class 'SkyZoneInfo', Sky, Event ) { SkyZone = Sky; } }