<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Gameplay%3A%3AgetGroundZFor3dCoord</id>
	<title>Gameplay::getGroundZFor3dCoord - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Gameplay%3A%3AgetGroundZFor3dCoord"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Gameplay::getGroundZFor3dCoord&amp;action=history"/>
	<updated>2026-07-24T18:50:40Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Gameplay::getGroundZFor3dCoord&amp;diff=9819&amp;oldid=prev</id>
		<title>imported&gt;Shr0x: updated &#039;see also&#039;</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Gameplay::getGroundZFor3dCoord&amp;diff=9819&amp;oldid=prev"/>
		<updated>2024-04-29T12:10:23Z</updated>

		<summary type="html">&lt;p&gt;updated &amp;#039;see also&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
Returns the first surface &amp;#039;&amp;#039;beneath&amp;#039;&amp;#039; the specified elevation (at the given location).&lt;br /&gt;
&lt;br /&gt;
This can be a roof, an elevated road, or the ground.&lt;br /&gt;
&lt;br /&gt;
(If no surface can be found beneath, then the returned boolean will be false, and the float will contain 0.)&lt;br /&gt;
&lt;br /&gt;
For water positions the sea floor will be returned (negative value).&lt;br /&gt;
&lt;br /&gt;
For the function to work reliably, the position tested should have been streamed already (i.e. close to the player); otherwise it might return 0.&lt;br /&gt;
&lt;br /&gt;
== Required Params ==&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;x:&amp;#039;&amp;#039;&amp;#039; {{RageType|float}} - X-coordinate of location to test&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;y:&amp;#039;&amp;#039;&amp;#039; {{RageType|float}} - Y-coordinate of location to test&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;z:&amp;#039;&amp;#039;&amp;#039; {{RageType|float}} - Z-coordinate, beneath which to test &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;waterAsGround:&amp;#039;&amp;#039;&amp;#039; {{RageType|Boolean}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;waterLevelCheck:&amp;#039;&amp;#039;&amp;#039; {{RageType|boolean}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.gameplay.getGroundZFor3dCoord(x, y, z, waterAsGround, waterLevelCheck);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
const {position} = mp.players.local;&lt;br /&gt;
const getGroundZ = mp.game.gameplay.getGroundZFor3dCoord(position.x, position.y, position.z, 0.0, false);&lt;br /&gt;
mp.markers.new(1, new mp.Vector3(position.x, position.y, getGroundZ), 1.5, { color: [0, 255, 0, 100], visible: true });&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{Gameplay_definition_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>