Is there a line of sight between two objects.
- Source object
- Target object
Returns whether or not there is a direct line of sight between the two objects. (Not blocked by any geometry).
PLEASE NOTE: This is an expensive function and may degrade performance if used frequently.
This is hardly ever needed practically - for spell scripts, it is not required unless an area-of-effect spell doesn't use GetFirst/NextObjectInShape, because the game already has internal restraints on Line-Of-Sight checks for single target or ground targeted spells.
Note that LOS is done at a Z = Ground Height + 1.0. NWN LOS is...pretty wacky (given it's a 2.5D game, this means something "flying up high" could be invisible if they're standing behind a small rock still, and that Dragons who are huge could be hidden by a small wall).
author: Lilac Soul, editor: Jasperre