LineOfSightVector

From NWN Lexicon



Contents

[edit] LineOfSightVector(vector, vector)

Returns whether there's a direct line between two positions

int LineOfSightVector(
    vector vSource,
    vector vTarget
);

[edit] Parameters

vSource

Source position

vTarget

Target position


[edit] Description

Returns whether or not there is a direct line of sight between the two vectors. (Not blocked by any geometry).

This function must be run on a valid object in the area it will not work on the module or area.

PLEASE NOTE: This is an expensive function and may degrade performance if used frequently.



[edit] Remarks

Vectors are location markers - being a set of 3 co-ordinates (X, Y, Z), and so this can be used instead of LineOfSightObject() if the 2 objects just had thier vector got by GetPosition().


[edit] Version

1.61

[edit] See Also

functions: 

LineOfSightObject



 author: Lilac Soul, editor: Jasperre
 

Personal tools
Categories