Difference between revisions of "CheckLineOfSightObject"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: Importing auto-generated function articles) |
BryanDerksen (Talk | contribs) (remove tag) |
||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
|name=CheckLineOfSightObject | |name=CheckLineOfSightObject | ||
Line 17: | Line 16: | ||
== Description == | == Description == | ||
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. --> | <!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. --> | ||
− | 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 | + | 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. |
− | area or if either object is invalid this function will return FALSE. | + | |
== Remarks == | == Remarks == |
Latest revision as of 00:29, 20 February 2010
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.