Difference between revisions of "Osiris/API/GetDistanceTo"

From Divinity Engine Wiki
Jump to: navigation, search
(Osiris Core APIs)
 
m
Line 9: Line 9:
 
* /
 
* /
 
===== See Also =====
 
===== See Also =====
* [[Osiris/API/ItemIsInInventory]]
+
* [[Osiris/API/ItemIsInInventory|ItemIsInInventory]]
 
   
 
   
 
[[Category:Osiris Queries]]
 
[[Category:Osiris Queries]]

Revision as of 21:46, 25 August 2017

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