CheckLineOfSightObject
From Dragon Age Toolset Wiki
Determines if there is a line of sight between two objects.
- Parameters:
- oSource
- The first object
- oTarget
- The second object
- Returns:
- Returns TRUE if there is a clear line of sight between the two objects. Returns FALSE if there is not.
- Source:
- script.ldf
Description
Returns TRUE if there is a clear line of sight between object oSource and object oTarget, otherwise returns FALSE. If the line is occluded by geometry then the function will return FALSE. If the two objects are not in the same area or if either object is invalid this function will return FALSE.
Remarks
It should be noted that the function is somewhat expensive and should not be called in an inner loop of your script.