I don't need to test my programs. I have an error-correcting modem.

UE2:LineOfSightTrigger (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:11, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
U2XMP Object >> Actor >> Triggers >> LineOfSightTrigger
Package: 
Engine
This class in other games:
UE2Runtime, UT2003, U2, UT2004

LineOfSightTrigger triggers its event when player looks at it from close enough ONLY WORKS IN SINGLE PLAYER (or for the local client on a listen server) You could implement a multiplayer version using a tick event and PlayerCanSeeMe(), but that would have more performance cost

Properties[edit]

Property group 'LineOfSightTrigger'[edit]

bEnabled[edit]

Type: bool


Default value: True

MaxViewAngle[edit]

Type: int

how directly a player must be looking at SeenActor center (in degrees)

Default value: 15

MaxViewDist[edit]

Type: float

maximum distance player can be from this trigger to trigger it

Default value: 3000.0

SeenActorTag[edit]

Type: name

tag of actor which triggers this trigger when seen

Internal variables[edit]

bTriggered[edit]

Type: bool


OldTickTime[edit]

Type: float


RequiredViewDir[edit]

Type: float

how directly player must be looking at SeenActor - 1.0 = straight on, 0.75 = barely on screen

SeenActor[edit]

Type: Actor


Default values[edit]

Property Value
bCollideActors False

Functions[edit]

Events[edit]

PlayerSeesMe[edit]

event PlayerSeesMe (PlayerController P)


PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Other instance functions[edit]

Trigger[edit]

function Trigger (Actor Other, Pawn EventInstigator, optional name EventName)

Overrides: Actor.Trigger