CheckLineOfSightObject
This page was generated by Sunjammer's Dragon Age Script Parser.
The parser extracted and matched all the information required to the best of its ability however the parser relies on the source file, and especially a function's comments, to be correctly formatted. If the source file was not correctly formatted the information presented may be incomplete.
This page should be reviewed by a knowledgeable scripter as it may require updating. If an issue with the source file is identified it should be reported to BioWare.
Please remove the {{Generated}} tag once the page has been confirmed or corrected.
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.