Osiris/API/GetDistanceTo

From Divinity Engine Wiki
Revision as of 15:29, 19 December 2017 by Tinkerer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query GetDistanceTo([in](GUIDSTRING)_Object1, [in](GUIDSTRING)_Object2, [out](REAL)_Dist)
Description

Calculates the distance between _Object1 and _Object2.

Return Values
  • Success/Failure: Fails if if either _Object1 or _Object2 is in a container or in an inventory. Use ItemIsInInventory to check for this.
  • _Dist: The distance in metres.
Notes
  • /
See Also