I don't need to test my programs. I have an error-correcting modem.
UE2:LineOfSightTrigger (U2XMP)
Contents
- Package:
- Engine
- This class in other games:
- UE2Runtime, UT2003, U2, 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 event and PlayerCanSeeMe(), but that would have more performance cost
Properties
Property group 'LineOfSightTrigger'
bEnabled
Type: bool
Default value: True
MaxViewAngle
Type: int
how directly a player must be looking at SeenActor center (in degrees)
Default value: 15
MaxViewDist
Type: float
maximum distance player can be from this trigger to trigger it
Default value: 3000.0
SeenActorTag
Type: name
tag of actor which triggers this trigger when seen
Internal variables
bTriggered
Type: bool
OldTickTime
Type: float
RequiredViewDir
Type: float
how directly player must be looking at SeenActor - 1.0 = straight on, 0.75 = barely on screen
SeenActor
Type: Actor
Default values
Property | Value |
---|---|
bCollideActors | False |
Functions
Events
PlayerSeesMe
PostBeginPlay
Overrides: Actor.PostBeginPlay
Other instance functions
Trigger
Overrides: Actor.Trigger