ObjCondition LineOfSight

From Tripwire Interactive Wiki
Jump to navigation Jump to search

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 unobstructed by world geometry. Leave this false if you want him to see through walls.