Osiris/API/HasLineOfSight

From Divinity Engine Wiki
Revision as of 21:34, 13 September 2018 by Tinkerer (talk | contribs) (call -> query, put into standard template form)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query HasLineOfSight([in](GUIDSTRING)_Source, [in](GUIDSTRING)_Target, [out](INTEGER)_Bool)
Description

Checks if there is a line of sight between source and target: whether an unobstructed 3D-line can be drawn between the two objects.

Return Values
  • Success/Failure: Fails if _Source or _Target does not exist, or if there is no active level.
  • _Bool: if there is a straight line of vision between _Source and _Target according to the level's vision grid.
Notes
  • This query does not take into account sneaking, sight ranges, statuses, or anything else.
  • The objects can be any kind of object (character, item, trigger, spline, ...).
See Also