I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
UE2:LineOfSightTrigger (U2)
Contents
- Package:
- Engine
- This class in other games:
- UE2Runtime, UT2003, U2XMP, UT2004
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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]
PostBeginPlay[edit]
Overrides: Actor.PostBeginPlay
Trigger[edit]
Overrides: Actor.Trigger