Difference between revisions of "Osiris/API/GetSurfaceSize"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented GetSurfaceSize)
 
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* query '''GetSurfaceSize'''('''''[in]'''(GUIDSTRING)'''''_Target''', '''''[in]'''(INTEGER)''''_SurfaceLayer''''', '''''[out]'''(INTEGER)'''_SurfaceSize''')
+
* query '''GetSurfaceSize'''('''''[in]'''(GUIDSTRING)'''''_Target''', '''''[in]'''(INTEGER)'''''_SurfaceLayer''', '''''[out]'''(INTEGER)'''''_SurfaceSize''')
 
===== Description =====
 
===== Description =====
Returns the size of the surface on layer '''_SurfaceLayer''' in which '''_Target''' is standing. Valid values for '''_SurfaceLayer''' are
+
Returns the size of the surface type on layer '''_SurfaceLayer''' in which '''_Target''' is standing. Valid values for '''_SurfaceLayer''' are
 
; 0 : Ground layer
 
; 0 : Ground layer
 
; 1 : Cloud layer
 
; 1 : Cloud layer
Line 9: Line 9:
 
* '''_SurfaceSize''': The number of cells occupied by the surface.
 
* '''_SurfaceSize''': The number of cells occupied by the surface.
 
===== Notes =====
 
===== Notes =====
* /
+
* This query is new in DOS2 Patch 5
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CreatePuddle|CreatePuddle]]
 
* [[Osiris/API/CreatePuddle|CreatePuddle]]
Line 20: Line 20:
 
* [[Osiris/API/GetSurfaceGroundOwnerAt|GetSurfaceGroundOwnerAt]]
 
* [[Osiris/API/GetSurfaceGroundOwnerAt|GetSurfaceGroundOwnerAt]]
 
* [[Osiris/API/GetSurfaceNameByTypeIndex|GetSurfaceNameByTypeIndex]]
 
* [[Osiris/API/GetSurfaceNameByTypeIndex|GetSurfaceNameByTypeIndex]]
 +
* [[Osiris/API/GetSurfaceTurns|GetSurfaceTurns]]
 
* [[Osiris/API/GetSurfaceTypeIndex|GetSurfaceTypeIndex]]
 
* [[Osiris/API/GetSurfaceTypeIndex|GetSurfaceTypeIndex]]
 
* [[Osiris/API/StopDrawSurfaceOnPath|StopDrawSurfaceOnPath]]
 
* [[Osiris/API/StopDrawSurfaceOnPath|StopDrawSurfaceOnPath]]
Line 25: Line 26:
 
* [[Osiris/API/TransformSurfaceAtPosition|TransformSurfaceAtPosition]]
 
* [[Osiris/API/TransformSurfaceAtPosition|TransformSurfaceAtPosition]]
  
[[Category:Osiris Queries]]
+
[[Category:Osiris Queries|GetSurfaceSize]]

Latest revision as of 11:08, 2 May 2019

Full Definition(s)
  • query GetSurfaceSize([in](GUIDSTRING)_Target, [in](INTEGER)_SurfaceLayer, [out](INTEGER)_SurfaceSize)
Description

Returns the size of the surface type on layer _SurfaceLayer in which _Target is standing. Valid values for _SurfaceLayer are

Ground layer
Cloud layer
Return Values
  • Success/Failure: Fails if _Target is NULL or does not have a position (e.g. in an inventory), if no level is currently loaded, if _SurfaceLayer is not valid, or if _Target is not in any surface that belongs to _SurfaceLayer.
  • _SurfaceSize: The number of cells occupied by the surface.
Notes
  • This query is new in DOS2 Patch 5
See Also