ObjCondition LineOfSight: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
(Created page with "'''Description''' ---- Line of sight conditions are used to determine if a living human player is currently looking at a specific location in the world. The location used is d...")
 
No edit summary
Line 16: Line 16:
| MinDistance || Float || The player needs to be this distance or less from the target or the condition will not be considered complete.
| MinDistance || Float || The player needs to be this distance or less from the target or the condition will not be considered complete.
|-
|-
| bPerformLineCheck || Bool || If true, the player's view of the target must be unobstructed by world geometry.  
| bPerformLineCheck || Bool || If true, the player needs to have a clear line of sight to his target that is unobstucted by world geometry.  Leave this false if you want him to see through walls.  
|-
|-
|}
|}

Revision as of 17:00, 6 November 2013

Description


Line of sight conditions are used to determine if a living human player is currently looking at a specific location in the world. The location used is determined by the HUD_World actor in the condition's HUD properties.


Configurable Properties

Variable Name Variable Type Description
MinDotProduct Float The minimum angle between the player's view roation and the location of the actor you're meant to be looking at. Positive values between 0 and 1 are in front of the player.
MinDistance Float The player needs to be this distance or less from the target or the condition will not be considered complete.
bPerformLineCheck Bool If true, the player needs to have a clear line of sight to his target that is unobstucted by world geometry. Leave this false if you want him to see through walls.