Always snap to grid
UE2:ZoneInfo (U2)
- Package:
- Engine
- Direct subclasses:
- SlimeZone, LavaZone, LevelInfo, PressureZone, SkyZoneInfo, VacuumZone, WarpZoneInfo, WaterZone
- Known custom subclass:
- Wormbo/SelectableSkyZoneInfo
- This class in other games:
- RTNP, U1, UT, UE2Runtime, UT2003, U2XMP, UT2004, UDK, UT3
ZoneInfo actors are used to set properties of zones that are different from the global level properties as defined in the map's LevelInfo. Like Volumes, ZoneInfos can be used to assign names to areas of the map, and like a PhysicsVolume a ZoneInfo can apply an audio environment (an I3DL2Listener) to this area.
Additionally, zones and their ZoneInfos play an important role in level optimization. The ZoneInfo properties bLonelyZone, ManualExcludes and Actor.Tag (in combination with Actor.ForcedVisibilityZoneTag) can be used to help the rendering code with deciding what actually needs to be rendered. The DistanceFogEnd can also be used for performance optimization: objects further away than the end of the distance fog are not considered for rendering. Of course this should only be used if it fits the map's theme, but large maps may become unplayable if it is not used.
Properties[edit]
Property group 'ZoneInfo'[edit]
bClearToFogColor[edit]
Type: bool
Clear to fog color if distance fog is enabled.
bDistanceFog[edit]
Type: bool
There is distance fog in this zone.
bSoftKillZ[edit]
Type: bool
Players falling below the KillZ height aren't killed immediately, but only when they land or fall really deep (more than 2000UU) below the KillZ area.
bTerrainZone[edit]
Type: bool
There is terrain in this zone. TerrainInfos will have no effect in this zone if this property is set to False. You can use this to make holes in your terrain. You can see this e.g. on DM-Antalus, where the three cave entrance ways cut through the terrain. The terrain transitions are covered by the large spike-like static meshes there.
KillZ[edit]
Type: float
Actors, especially Pawns, falling below this height are killed. More specificly, the engine calls the actor's FellOutOfWorld() event with this zone's KillZType as parameter and the actor decides, how to handle this.
Default value: -10000.0
KillZType[edit]
Type: Actor.eKillZType
This is passed to an actor's FellOutOfWorld() event to allow different KillZ effects.
LocationName[edit]
Type: string
Modifiers: localized
The location name of this zone. Any Volume can be used to override this value for parts of the zone. The LocationName specified in the level properties will be used for zones without a ZoneInfo or if the ZoneInfo's LocationName is empty.
ZoneTag[edit]
Type: name
This name is used in combination with ZoneTriggers. (Only used for switching the destination of WarpZoneInfos.)
Property group 'ZoneLight'[edit]
AmbientBrightness[edit]
Type: byte
Brightness of the ambient lighting in this zone.
AmbientHue[edit]
Type: byte
Color of the ambient lighting in this zone.
AmbientSaturation[edit]
Type: byte
Saturation of the ambient lighting in this zone.
Default value: 255
DistanceFogBlendTime[edit]
Type: float
Distance fog transition time when entering this zone. This value also determines how quickly to fade in/out the fog if either the previous or this new zone does not have any distance fog.
Default value: 1.0
DistanceFogColor[edit]
Type: Object.Color
The color of the distance fog. The alpha component is unused.
Default value:
Member | Value |
---|---|
A | 0 |
B | 128 |
G | 128 |
R | 128 |
DistanceFogEnd[edit]
Type: float
The distance at which the fog reaches full opacity.
Default value: 8000.0
DistanceFogStart[edit]
Type: float
The distance at which the fog starts.
Default value: 3000.0
EnvironmentMap[edit]
Type: Texture
Modifiers: const
TexUPanSpeed[edit]
Type: float
Unused.
Default value: 1.0
TexVPanSpeed[edit]
Type: float
Unused.
Default value: 1.0
Property group 'ZoneSound'[edit]
ZoneEffect[edit]
Type: I3DL2Listener
Modifiers: editinline
An audio environment for this zone.
Property group 'ZoneVisibility'[edit]
bLonelyZone[edit]
Type: bool
Set this to True when this zone can neither be seen from any other zone, nor can any other zone (including the skybox) be seen from this zone.
ManualExcludes[edit]
Type: array<ZoneInfo>
Modifiers: editinline
You can add other ZoneInfo actors to this list to help the visibility code decide whether it should render that other zone if viewing from this zone. This can be useful if the view to another zone is only obstructed by static meshes.
Unfortunately this property is not defined as edfindable, so you will have to enter the Name from the Object property group of the ZoneInfo actors manually. UnrealEd only requires the short name, not the fully qualified name, though. Something like ZoneInfo5
will automatically be completed to ZoneInfo'myLevel.ZoneInfo5'
.
Internal variables[edit]
AmbientVector[edit]
Type: Object.Vector
SkyZone[edit]
Type: SkyZoneInfo
Reference to the SkyZoneInfo of the skybox of this zone. This property is initialized automatically at startup, but some custom ZoneInfo subclasses provide a way to select a specific skyzone.
Terrains[edit]
Type: array<TerrainInfo>
Modifiers: const
List of TerrainInfos in this zone.
Default values[edit]
Property | Value |
---|---|
bNoDelete | True |
bStatic | True |
Texture | Texture'Engine.S_ZoneInfo' |
Functions[edit]
Iterator functions[edit]
ZoneActors[edit]
Iterates through all actors contained in this zone. This iterator function has about the same performance as AllActors, just with the benefit that actors from other zones are filtered in native code.
Events[edit]
ActorEntered[edit]
Called when an actor enters this zone. Used only by WarpZoneInfo.
ActorLeaving[edit]
Called when an actor leaves this zone. Used only by WarpZoneInfo.
PreBeginPlay[edit]
Overrides: Actor.PreBeginPlay
Links this zone's skybox.
Other instance functions[edit]
LinkToSkybox[edit]
Tries to find a SkyZoneInfo for this zone. At low world detail, SkyZoneInfos with both bHighDetail and bSuperHighDetail set to False are ignored, at high world detail SkyZoneInfos with both bSuperHighDetail set to False are ignored.
Only the last relevant SkyZoneInfos placed by the mapper is used. If you want to use different skyboxes for different detail levels, make sure you place the SkyZoneInfo for the lowest detail mode first and the SkyZoneInfo for the highest detail mode last. If you added them in a different order, you can use the "Order -> To Last" command from the viewport context menu to change the order of the SkyZoneInfos.