There is no spoon

Legacy:MultiSkyboxZoneInfo

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

UT2003 Version[edit]

  1. //=============================================================================
  2. // MultiSkyboxZoneInfo.
  3. // Input the tag of the skybox you want the fake backdrop surfaces of the zone to display
  4. //
  5. // (c) Zxanphorian 2002
  6. // tornado.f5@worldnet.att.net
  7. //=============================================================================
  8. class MultiSkyboxZoneInfo extends ZoneInfo
  9. 	placeable;
  10.  
  11.  
  12.  
  13. var() name SkyZoneTag;
  14.  
  15.  
  16.  
  17. simulated function LinkToSkybox()
  18. {
  19. 	local SkyZoneInfo Skybox;
  20.  
  21. 	Super.LinkToSkybox();
  22. 	foreach AllActors( class 'SkyZoneInfo', Skybox, SkyZoneTag )
  23. 	{
  24. 		SkyZone = Skybox;
  25. 	}
  26.  
  27.  
  28. }

UT Version[edit]

  1. class SelectiveSkyZoneInfo expands ZoneInfo;
  2.  
  3. var() name SelectedSky;
  4.  
  5. simulated function LinkToSkybox()
  6. {
  7. 	local skyzoneinfo TempSkyZone;
  8.  
  9. 	if(SelectedSky != 'None')
  10. 	{
  11. 		foreach AllActors(class'SkyZoneInfo', TempSkyZone, SelectedSky)
  12. 		{
  13. 			SkyZone = TempSkyZone;
  14. 			return;
  15. 		}
  16. 	}
  17.  
  18. 	foreach AllActors( class 'SkyZoneInfo', TempSkyZone, '' )
  19. 		SkyZone = TempSkyZone;
  20.  
  21. 	foreach AllActors( class 'SkyZoneInfo', TempSkyZone, '' )
  22. 		if( TempSkyZone.bHighDetail == Level.bHighDetailMode )
  23. 			SkyZone = TempSkyZone;
  24. }

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;
	}
}