Osiris/API/GetSurfaceTurns

From Divinity Engine Wiki
Jump to: navigation, search
Full Definition(s)
  • query GetSurfaceTurns([in](GUIDSTRING)_Target, [in](INTEGER)_SurfaceLayer, [out](INTEGER)_SurfaceTurns)
Description

Returns the number of remaining turns of the surface at _Target's AI-grid position in the layer _SurfaceLayer.

Return Values
  • Success/Failure: Fails if no level is currently loaded, if the _Target is outside the AIgrid, if _SurfaceLayer is invalid, or if there is currently no surface at _Target.
  • _SurfaceTurns: The remaining number of turns that the surface at that position in that layer has remaining (rounded upwards). Returns -1 for permanent surfaces.
Notes
See Also