<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.larian.game/index.php?action=history&amp;feed=atom&amp;title=Osiris%2FAPI%2FGetSurfaceTurns</id>
	<title>Osiris/API/GetSurfaceTurns - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.larian.game/index.php?action=history&amp;feed=atom&amp;title=Osiris%2FAPI%2FGetSurfaceTurns"/>
	<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Osiris/API/GetSurfaceTurns&amp;action=history"/>
	<updated>2026-04-27T09:43:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://docs.larian.game/index.php?title=Osiris/API/GetSurfaceTurns&amp;diff=5724&amp;oldid=prev</id>
		<title>Tinkerer: Documented GetSurfaceTurns</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Osiris/API/GetSurfaceTurns&amp;diff=5724&amp;oldid=prev"/>
		<updated>2018-02-22T20:44:11Z</updated>

		<summary type="html">&lt;p&gt;Documented GetSurfaceTurns&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== Full Definition(s) =====&lt;br /&gt;
* query '''GetSurfaceTurns'''('''''[in]'''(GUIDSTRING)'''''_Target''', '''''[in]'''(INTEGER)'''''_SurfaceLayer''', '''''[out]'''(INTEGER)'''''_SurfaceTurns''')&lt;br /&gt;
===== Description =====&lt;br /&gt;
Returns the number of remaining turns of the surface at '''_Target''''s AI-grid position in the layer '''_SurfaceLayer'''.&lt;br /&gt;
===== Return Values =====&lt;br /&gt;
* '''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'''.&lt;br /&gt;
* '''_SurfaceTurns''': The remaining number of turns that the surface at that position in that layer has remaining (rounded upwards). Returns '''-1''' for permanent surfaces.&lt;br /&gt;
===== Notes =====&lt;br /&gt;
* See [[Osiris/API/GetSurfaceSize]] for valid values for '''_SurfaceLayer'''.&lt;br /&gt;
===== See Also =====&lt;br /&gt;
* [[Osiris/API/CreatePuddle|CreatePuddle]]&lt;br /&gt;
* [[Osiris/API/CreateSurface|CreateSurface]]&lt;br /&gt;
* [[Osiris/API/CreateSurfaceAtPosition|CreateSurfaceAtPosition]]&lt;br /&gt;
* [[Osiris/API/DrawSurfaceOnPath|DrawSurfaceOnPath]]&lt;br /&gt;
* [[Osiris/API/GetSurfaceCloudAt|GetSurfaceCloudAt]]&lt;br /&gt;
* [[Osiris/API/GetSurfaceCloudOwnerAt|GetSurfaceCloudOwnerAt]]&lt;br /&gt;
* [[Osiris/API/GetSurfaceGroundAt|GetSurfaceGroundAt]]&lt;br /&gt;
* [[Osiris/API/GetSurfaceGroundOwnerAt|GetSurfaceGroundOwnerAt]]&lt;br /&gt;
* [[Osiris/API/GetSurfaceNameByTypeIndex|GetSurfaceNameByTypeIndex]]&lt;br /&gt;
* [[Osiris/API/GetSurfaceSize|GetSurfaceSize]]&lt;br /&gt;
* [[Osiris/API/GetSurfaceTypeIndex|GetSurfaceTypeIndex]]&lt;br /&gt;
* [[Osiris/API/StopDrawSurfaceOnPath|StopDrawSurfaceOnPath]]&lt;br /&gt;
* [[Osiris/API/TransformSurface|TransformSurface]]&lt;br /&gt;
* [[Osiris/API/TransformSurfaceAtPosition|TransformSurfaceAtPosition]]&lt;br /&gt;
* [[Scripting_surface_types|List of surface types]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
[[Category:Osiris Queries|GetSurfaceTurns]]&lt;/div&gt;</summary>
		<author><name>Tinkerer</name></author>
	</entry>
</feed>