I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:AntiPortalActor (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> Actor >> AntiPortalActor
Package: 
Engine
This class in other games:
U2, U2XMP, UE2Runtime, UT2003

Similar to Volumes, AntiPortalActors are brush-like actors. Unlike brushes, whose surfaces can only be flagged as individual anti portals, an AntiPortalActor's entire shape is a single anti portal. Another advantage of AntiPortalActors over anti portal surfaces is that they can be toggled dynamically at runtime, either through triggering or directly by a Mover.

While technically an AntiPortalActor is no brush, it is still created in a similar way:

  1. Create the desired shape with a brush builder or the 2D shape editor. An important restriction for the shape of an AntiPortalActor is that it must be convex, i.e. lines connecting any two vertices of the shape may never leave the shape. This also implies that the shape must not contain any holes. Additionally, the shape should be kept as simple as reasonably possible. Too complex shapes eat up the performance gain from occluding actors again.
  2. Move the red builder brush to where you want to place the anti portal.
  3. UnrealEd-Toolbox-AddAntiPortal.png Hit the button "Add Antiportal" in the toolbox.

The AntiPortalActor will show up as a brown wireframe even in textured view modes, bright orange if selected. In real-time preview mode, AntiPortalActors are not displayed. Instead they perform their regular render occlusion tasks, which can be seen especially in real-time wireframe view.

Default values[edit]

Property Value
bEdShouldSnap True
bNoDelete True
DrawType DT_AntiPortal
RemoteRole ROLE_None

States[edit]

If you want to toggle the anti portal through triggering, you need to select one of these states as the AntiPortalActor's InitialState.

TriggerControl[edit]

Triggering disables the anti portal, untriggering enables it.

TriggerControl.Trigger[edit]

simulated event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)


TriggerControl.UnTrigger[edit]

simulated event UnTrigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.UnTrigger (global)


TriggerToggle[edit]

Triggering toggles the anti portal.

TriggerToggle.Trigger[edit]

simulated event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)