From Divinity Engine Wiki
- query GetSurfaceTurns([in](GUIDSTRING)_Target, [in](INTEGER)_SurfaceLayer, [out](INTEGER)_SurfaceTurns)
Returns the number of remaining turns of the surface at _Target's AI-grid position in the layer _SurfaceLayer.
- 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.
- See Osiris/API/GetSurfaceSize for valid values for _SurfaceLayer.
- List of surface types