UE2:AntiPortalActor (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 13:42, 13 December 2008 by imported>Wormbo (tweaked usage instructions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
UT2004 Object >> Actor >> AntiPortalActor
Package: 
Engine

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

Property Value
bEdShouldSnap True
bNoDelete True
DrawType DT_AntiPortal
RemoteRole ROLE_None

States

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

TriggerControl

Triggering disables the anti portal, untriggering enables it.

TriggerControl.Trigger

simulated event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)


TriggerControl.UnTrigger

simulated event UnTrigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.UnTrigger (global)


TriggerToggle

Triggering toggles the anti portal.

TriggerToggle.Trigger

simulated event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)