Legacy:MultiSkyboxZoneInfo

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to navigation Jump to search

UT2003 Version

<uscript line> //============================================================================= // MultiSkyboxZoneInfo. // Input the tag of the skybox you want the fake backdrop surfaces of the zone to display // // (c) Zxanphorian 2002 // [email protected] //============================================================================= class MultiSkyboxZoneInfo extends ZoneInfo placeable;


var() name SkyZoneTag;


simulated function LinkToSkybox() { local SkyZoneInfo Skybox;

Super.LinkToSkybox(); foreach AllActors( class 'SkyZoneInfo', Skybox, SkyZoneTag ) { SkyZone = Skybox; }


} </uscript>

UT Version

<uscript line> 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; } </uscript>

UT version (alternate version?)

<uscript> class MultiSkyZoneInfo expands ZoneInfo;

simulated function LinkToSkybox() { local skyzoneinfo Sky;

Super.LinkToSkybox();

foreach AllActors( class 'SkyZoneInfo', Sky, Event ) { SkyZone = Sky; } } </uscript>