Always snap to grid

UE2:LineOfSightTrigger (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> Triggers >> LineOfSightTrigger
Package: 
Engine
This class in other games:
UE2Runtime, UT2003, U2XMP, 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 function 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

Events[edit]

PlayerSeesMe[edit]

event PlayerSeesMe (PlayerController P)


PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Trigger[edit]

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger